Note: This is a work in progress.
This is a cookbook of recipes that I use (or have used) across multiple JS/TS projects.
- Try-Catch made simpler
- Promise.then.catch.finally made simpler
- Extracting keys from a list of objects
- Extract and flatten an object
- Enrich an object with properties of another object
- Make it faster to access more info about an
id
- Piping through functions that can throw an exception
- Safe, simple, sequential promises
- Trigger a file download
- Parallel promises made simple
- Advanced switch-case a.k.a Pattern Matching