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.
Calculates the logarithm of the given number in the given base.
JavaScript, Math · Oct 22, 2020
Loads a module after removing it from the cache (if exists).
JavaScript, Node · Sep 15, 2020
Creates a function that accepts up to one argument, ignoring any additional arguments.
JavaScript, Function · Oct 22, 2020
Checks if two numbers are approximately equal to each other.
JavaScript, Math · Nov 1, 2020
Checks if the first numeric argument is divisible by the second one.
JavaScript, Math · Sep 15, 2020
Checks if the given value is equal to negative zero (-0
).
JavaScript, Math · Oct 20, 2020