Array operators
Last updated
Last updated
Concatenates the arguments to return the concatenated array. Each argument must be an array.
Searches a value in an array and returns the index (zero-based) of the first occurrence.
array : The array to search from.
element : The value to search for.
start : The starting index position for the search. Optional.
end : The ending index position for the search. Optional.
If both start and end are left empty, the search will cover the entire array.
Compares array0 to array1 and returns an array containing the elements that only exist in array0
Returns true if all arguments have the same distinct elements. Otherwise, returns false. Each argument must be an array.
Returns an array that contains the elements appearing in every argument. Each argument must be an array. If there is no overlap, it returns an empty array.
Returns an array that contains the elements appearing in any argument. Each argument must be an array.
Returns the total number of elements in array. The argument must be an array.
Generates a sequence of numbers and returns them in an array.
start : The start value of the sequence.
end : The end value of the sequence.
step : The incremental value. It's optional and the default is 1.