How to filter and map an array at the same time in JavaScript
`filter` and `map` are two of the most commonly used array methods in JavaScript. But what if you want to filter and map in one iteration?
I’m Alexander, a software engineer and consultant based in The UK. I’m the founder of Keliris Consulting, where we help enterprises build modern, fast and reliable software. I mostly focus on Rust 🦀, Golang, Node.js, Typescript, React and AWS. I’m also a keen musician; playing the piano, guitar and renaissance lute.
`filter` and `map` are two of the most commonly used array methods in JavaScript. But what if you want to filter and map in one iteration?
Shiki makes use of vscode themes and Astro allows you to easily customise the Shiki config for markdown.
I like to set up CI for nearly all my side projects, here is how I set it up for Rust.
Sometimes you need to substitute values in a structured text file and envsubst might just be the utility you need.