new Array
Creates a new array with optional fixed length or initial elements.
Creates a new array with optional fixed length or initial elements.
Creates a new array instance from an array-like or iterable object.
Creates a new array from the provided arguments, regardless of type.
A standard loop that iterates through a block of code a set number of times.
Executes a provided function once for each array element.
Repeats code while condition is true.
Runs once, then repeats while true.
Loops through each value in an array, string, Map, or Set.
Loops through enumerable property names of an object.
Returns an element at a given index.
Merges arrays into a new array.
Copies part of an array to another location within it.
Returns the first element passing the test function.
Returns the index of the first matching element.
Returns the last element passing the test function.
Returns first index of element, -1 if not found.
Joins array elements into a string.
Returns an iterator with array indices as keys.
Combines array elements into a single value.
Combines array elements from right to left.
Reverses array elements in place, modifying the array.
Modifies array and returns deleted elements.
Adds elements to array start and returns new length.
Returns an iterator with values for each array index.
Multiplies a number by itself to calculate its square.
Returns the remainder after dividing one number by another.
Raises a number to a specified power, equivalent to multiplying the base by itself for the given exponent.
Generates a random number between 0 and 1.
Returns an iterator containing index-value pairs for each array element.
Checks if all elements pass the provided test function.
Fills array elements with a static value between indices.
Creates a new array with elements that pass the test function.
Returns the index of the last element that satisfies the test function.
Flattens nested arrays into a single array.
Maps and flattens each element into a new array.
Determines whether an array includes a certain element.
Returns the last index of a value or -1 if not found.
Creates a new array by transforming each element using the provided function.
Removes and returns the last element of the array. Modifies array.
Adds elements to end of array and returns new length. Modifies array.
Removes and returns the first element of the array. Modifies array.
Creates a shallow copy of a portion of an array.
Checks if at least one element passes the provided test function.
Sorts array elements in place.
Returns a new array with elements reversed. Doesn't modify original array.
Returns a new sorted array. Doesn't modify original array.
Returns new array with elements added/removed. Doesn't modify original array.
Returns new array with element at index replaced. Doesn't modify original array.
Returns the absolute value of a number, making negative numbers positive.
Returns the sign of a number: -1 for negative, 0 for zero, 1 for positive.
Returns the square root of a number.
Removes decimal digits, returning only the integer part.