Javascript CheatsheetWed Sep 23 2020
Code Snippets
To reverse a map (key -> value => value -> key)
Object.fromEntries(Object.entries(my_map).map(([a, b]) => [b, a]));
Links
If I found a read useful, I should maintain a link to it.
JS Double Bang — or “The Not Operator Part !!” by Edward Plato