-
Notifications
You must be signed in to change notification settings - Fork 2
Module APIs
Whether or not the predicate (1) holds for all values within the array (2)
The first array (1) with the values of the second array (2) sequentially appended to its end
Whether or not the array (2) contains the element (1)
An object, such that the function (1) maps the items of the array (2) to the object's keys, and any given key's corresponding value is the number of items from the array that mapped to that key
A copy of the first array (1), with the items of the second array (2) removed from it
Whether or not any item within the array (2) meets the given criteria (1)
A copy of the array (2), containing only the items that meet the criteria (1)
A Something containing the first item within the array (2) that meets the criteria (1); None if no such thing can be found
A Something containing the first index at which an item in the array (2) meets the criteria (1); None if no such thing can be found
Functionally, a copy of the array (2) with each item mapped according to the function (1), and then subjected to a one-level flattening; equivalent to a monadic bind operation
A deep flattening of input array (1), such that it has no remaining elements that are arrays
A left fold of the array (3), such that the combination function (1) is applied to each item of the array, from left to right, building an accumulator from the initial value (2)
The value undefined, but not before running the function (1) on each element of the array (2) sequentially
If the array isn't empty, a Something containing the first item of the array (1); otherwise, None
Whether or not the input array (1) contains any elements
A Something containing the item in the array (2) at that index (1), if the index is in-bounds; otherwise, None
The last item of the array (1); undefined if an empty array
The number of items in the input array (1)
A copy of the array (2) with the mapping function (1) applied to each item
A Something containing the item of the array (2) that generates the largest number when the function (1) is applied to it; None if the array is empty
A new array, which consists of the items from the input array (1) in reverse order
An array whose one item is the argument
A copy of the array (2), sorted from least to greatest by the criteria (1)
Note: Comparable includes all values for which the standard JavaScript comparison operators are defined
The lowest index at which the item (3) can be inserted into the array (2) while still maintaining the sort order, as defined by the sorting function (1)
Note: Assumes that the array is already sorted in terms of the sorting function
Note: Comparable includes all values for which the standard JavaScript comparison operators are defined
A sequential array of all items of the input array (1) but the first item
Treating each pair in the input array (1) as a key-value pair, an object composed from mapping each of those keys to its corresponding value
A copy of the input array (1) with all redundant items removed
A copy of the input array (2) with all redundant items removed, where each item's identity is defined by the mapping function (1)
An array where each item at index n is the nth item of the first array (1), paired with the nth item of the second array (2), where the maximum n is the lowest maximum n between the two arrays; items in either array that are at indexes above the maximum n are dropped
Whether or not the two arguments are (deep) equivalent
Whether or not the two arguments are equivalent
Whether or not the two arguments are (deep) equivalent
Whether or not the two arguments are equivalent
Whether or not the two arguments are (deep) equivalent
Whether or not the two arguments are equivalent
The result of calling the function (1) with the value (2) as its sole argument.
A function that always returns the argument
The argument, but where the argument required a single n-argument application, instead requiring n single-argument applications
The input binary function with its two arguments flipped in order
The value passed in
A function that is the left-to-right composition of all functions passed as arguments
A pair, where the first item is the result of applying the item (3) to the first function (1), and the second item is the result of applying the item (3) to the second function (2)
The argument, but, where the argument required n single-argument applications, instead requiring a single n-argument application
An empty Maybe
A Maybe containing the argument
If the supplied value (2) is a Something that contains a value that evaluates to false when the predicate (1) is run on it, then None; otherwise, the supplied value
If the supplied value (2) is a Something, then the result of the contained value of the original Something applied to the function (1); otherwise, None
If the supplied value (3) is a Something, then the result of applying its contained value to the mapping function (2); otherwise, the result of running the default function (1)
Whether or not the argument is a Something
If the supplied value (2) is a Something, then a new Something that contains the result of the contained value of the original Something applied to the function (1); otherwise, None
If the supplied value (1) is nullary (e.g. null, undefined), then None; otherwise a Something containing the value
If the argument is a Something, then an array whose single item is that contained in the Something; otherwise, an empty array
The product of the two arguments
The sum of the two arguments
The sequence of numbers from the start (1) up to (and including) the end (2)
The sequence of numbers from the start (1) up to (but not including) the end (2)
A shallow copy of the input object
The enumerable field names of the input object
A Something containing the value in the object (2) for that key (1), if the object is defined for that key; otherwise, None
The key-value pairs of all enumerable entries in the input object
The enumerable field values of the input object
Whether or not the input is an array
Whether or not the input is a boolean
Whether or not the input is a function
Whether or not the input is a number
Whether or not the input is an object
Whether or not the input is a string