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.
Converts a number to a decimal mark formatted string.
JavaScript, Math · Oct 22, 2020
Checks if the user color scheme preference is dark
.
JavaScript, Browser · Oct 22, 2020
Checks if the user color scheme preference is light
.
JavaScript, Browser · Oct 22, 2020
Checks if all elements in an array are equal.
JavaScript, Array · Oct 18, 2020
Checks if all the elements in values
are included in arr
.
JavaScript, Array · Oct 20, 2020
Checks if at least one element of values
is included in arr
.
JavaScript, Array · Oct 20, 2020
Calculates the width of the window's vertical scrollbar.
JavaScript, Browser · Jul 16, 2022