Creates all possible permutations of elements in first array and second. Elements within same array are not permutated.
Finds all values that are in xs but not in ys
xs
ys
Picks number in array nearest value
value
Removes duplicate values from an array.
The array to deduplicate.
A new array with unique values.
Sorts an object array by a field
Sorts an array of objects by a numeric field.
The array of objects to sort.
Function to extract the numeric value from each object.
Sort direction, either "ASC" or "DESC" (default: "ASC").
A new sorted array.
Sorts an array of objects by a string field.
Function to extract the string value from each object.
Splits array into array of elements before value and elements after it. If value is not found in array, all of array is return as elements before.
array
Creates all possible permutations of elements in first array and second. Elements within same array are not permutated.