JavaScript Snippets
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.
Checks if the given number is a power of
10
.Checks if the given argument is a symbol.
Calculates the nth root of a given number.
Checks if two numbers are approximately equal to each other.
Converts an angle from degrees to radians.
Checks if the first numeric argument is divisible by the second one.
Checks if the given number is even.
Checks if the specified value is
null
orundefined
.Checks if the specified value is
null
.Checks if the given number is odd.
Checks if the given number is a power of
2
.Checks if the specified value is
undefined
.Converts an angle from radians to degrees.
Converts a value to a safe integer.