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 an array consisting of the quotient and remainder of the given numbers.
JavaScript, Math · Oct 7, 2020
Check if a number is even or odd using JavaScript using the modulo operator or bitwise AND operator.
JavaScript, Math · Oct 6, 2023
While both the prefix and postfix operators increment a value, the resulting value of the expression is very different.
JavaScript, Math · Oct 31, 2021
Converts a number to a decimal mark formatted string.
JavaScript, Math · Oct 22, 2020
Calculates the distance between two points.
JavaScript, Math · Dec 28, 2020