Minutes of Javascript – Collection of Useful Javascript Snippets
April 06, 2021 1070
Minutes of Javascript is a collection of Javascript snippets to make you discover new exciting features, useful tips or anything that will give you a better understanding of the subtleties of JS.
Switch statement vs Object Search
.map() & .reduce()
Methods for merging (aka concatenating) arrays
Using Map() vs Object literals
Weakmap()
Sets in ES6
Promises
Promises Part 2.
Promise.all vs Promise.allSettled
Promise.race
Proxies Part 1. introduction
Proxies Part 2. (with Reflect)
Proxies Part 3. makeReadOnly example
flat() and flatMap()
Fun with Emoji!
Some bizarre things in Javascript
Breaking in nested loops
EventEmitter
How to implement a local EventEmitter? (part 1.)
How to implement a local EventEmitter? (part 2.)
Using "_" in numbers for better readability
Array: .map() vs .filter() vs .reduce()
Generator function* and yield usage
Usage of switch (true), an example with numeric ranges