The JavaScript snippet collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
JavaScript distinguishes expressions and statements. Learn their differences in this short article.
JavaScript, Type · Nov 7, 2021
When it comes to immutability, JavaScript strings are often a source of confusion. Yet they're not as complicated as you might expect.
JavaScript, String · Oct 10, 2021
Did you know there's a JavaScript value that's not equal to itself?
JavaScript, Type · Dec 12, 2021
Object.is()
and the triple equals operator (===
) can both be used for equality checking in JavaScript, but when should you use each one?
JavaScript, Object · Jun 12, 2021
Checks if the given argument is a string. Only works for string primitives.
JavaScript, Type · Oct 20, 2020
Checks if the given argument is a native boolean element.
JavaScript, Type · Sep 15, 2020