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.
Returns the absolute value of the first number, but the sign of the second.
JavaScript, Math · Oct 7, 2020
Checks if a date is after another date.
JavaScript, Date · Oct 20, 2020
Checks if a date is before another date.
JavaScript, Date · Oct 20, 2020
Checks if a date is between two other dates.
JavaScript, Date · Oct 20, 2020
Checks if the given number falls within the given range.
JavaScript, Math · Nov 1, 2020
Creates a directory, if it does not exist.
JavaScript, Node.js · Oct 22, 2020
Checks if at least one function returns true
for a given set of arguments.
JavaScript, Function · Oct 19, 2020
Checks if the given argument is a native boolean element.
JavaScript, Type · Sep 15, 2020
Checks if the browser tab of the page is focused.
JavaScript, Browser · Oct 20, 2020