0.0.0-development
Check if an expression is true
Check if actual value is equal to expected value
Check if actual value is falsy
Check if actual value is not equal to expected value
Get URL file extension
(string)
URL
string
:
File extension
Check if value is an Array
(any)
Value
boolean
:
True if value is an Array, false otherwise
Check if CORS (Cross-origin resource sharing) is supported
boolean
:
True if CORS is supported, false otherwise
Check if value is an Object
(any)
Value
boolean
:
True if value is an Object, false otherwise
Generate a UUID (Universal Unique Identifier). Format : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Create a canvas element
HTMLCanvasElement
:
Canvas element
Get the type of an object
(object)
Object
string
:
Type of the object
Check if value is a HTML element
(any)
Value
boolean
:
True if value is a HTMLElement, false otherwise
Check if value is a HTML media element (image, audio or video)
(any)
Value
boolean
:
True if value is a HTML media element, false otherwise
Check if value is a NodeList
(any)
Value
boolean
:
True if value is a NodeList, false otherwise
Clamp a value between two bounds
number
:
Clamped value
Clamp a value between 0 and 1 (normalized)
(number)
Value to clamp
number
:
Clamped value
Diagonal of a rectangle
number
:
Diagonal length
Distance between two points
(number)
X coord of the first point
(number)
Y coord of the first point
(number)
X coord of the second point
(number)
Y coord of the second point
number
:
Computed distance
Check if a number is even
(number)
Number
boolean
:
True if the given number is even, false otherwise
Check if a number is odd
(number)
Number
boolean
:
True if the given number is odd, false otherwise
Linear interpolation between two values (lerping)
(number)
Normalized value to interpolate between x and y
(number)
First value
(number)
Second value
number
:
Lerped value
Lighten or darken a color
string
:
Computed hexadecimal
Re-maps a number from one range to another
(number)
The incoming value to be converted
(number)
Lower bound of the value's current range
(number)
Upper bound of the value's current range
(number)
Lower bound of the value's target range
(number)
Upper bound of the value's target range
number
:
Remapped number
Modulo absolute a value based on a length
number
:
Modulated value
Normalize a value between two bounds
number
:
Normalized value
Remap the 0..1 interval into 0..1 parabola, such that corners are remaped to 0 and the center to 1 In other words, parabola(0) = parabola(1) = 0, and parabola(1/2) = 1
number
:
Normalized mapped value
Generate a random float
number
:
Generated float
Generate a random hexadecimal color
string
:
Hexadecimal color
Generate a random integer
number
:
Generated integer
Smooth a value using cubic Hermite interpolation
number
:
Normalized smoothed value
Convert a degrees value into radians
(number)
Degrees
number
:
Radians