In this article, I’ll share 10 of the JavaScript tips, tricks, and best practices that I follow and found useful. 1. Use Numeric Separators This is one of the most used operators when I have to deal with large numbers. When using a separator (with ju...

Markdown supported · ⌘↵ to post
Solid Article! The only qualm I'll take is with #5 as it seems junior level devs already overuse .map(). .forEach() is a more analogous solution vs a for loop. Map, filter, and reduce have their applications and are really nice for, like you said, one lining code, but I feel map in particular is overused.
Николай Коваленко
if ([1, 'one', 2, 'two'].includes(value)) {
}
It creates new array every time. It is slower than multiple values comparison