Counts the values of an array into a map, with the key being based on a key mapper and the value being the occurrences of the key mapper result in the initial array.
Array to count.
Function to use for key generation.
Count map.
Groups the elements of an array into a map, with the key being based on a key mapper and the value being the values for the same key mapper result.
Array to group.
Function returning the key for the value.
Grouped map.
Groups the elements of an array into a map, with the key being based on a key mapper and the value being the values for the same key mapper result being reduced.
Array to group.
Function returning the key for the value.
Function initializing a new reduction result object.
Consumer creating a new reduction result object based on the previous result and the new data.
Grouped and reduced map.
Inserts the value(s) at the given position. If the index is equal or higher than the array length, the value(s) will be appended. If the index is less than 0, the value(s) will be prepended.
Note that the input array is being mutated.
Array to modify.
Index to insert at.
Value(s) to insert.
The mutated array.
Removes the first occurrence of an element from an array. If the element does not exist in the array nothing is done.
Note that the input array is being mutated.
Array to modify.
The value to remove.
The mutated array.
Returns a new array with every n-th item from the input array.
Array to use.
Step to use.
Stepped collection.
Checks if the string is blank (has no non-space content).
String to use.
If the string is blank.
Checks if a value is a promise.
Value to check.
If the value is a promise.
Gets the name of a value.
If the value is a function, its name is returned. If the value is a symbol, its key is returned. If the value is a string, it is returned as is. Otherwise, null is returned.
Value to check.
The name of the value.
Throws an exception if the value is nil, returns the value otherwise.
Value to check.
Supplier for the error to be thrown.
The value provided with guarantee to be non-nil.
Creates a map from the own entries of an object.
Object to use.
Map created from the object.
Creates a map from the own entries of an object.
Object to use.
Function mapping an object key to a map key.
Function mapping an object value to a map value.
Map created from the object.
Gets the value of a map entry by its key, throwing if the map does not contain the key.
Map to check against.
Key to get the value for.
The corresponding value.
Recursively freezes an objects and all own non-function sub-objects.
Note that the input object is being mutated.
Object to recursively freeze.
Recursively seals an objects and all own non-function sub-objects.
Note that the input object is being mutated.
Object to recursively seal.
Removes a value from the end of a string.
If the string does not end with the value, nothing is done.
String to check.
Value to remove.
String with the value removed from the end.
Removes a value from the start of a string.
If the string does not start with the value, nothing is done.
String to check.
Value to remove.
String with the value removed from the start.
Generated using TypeDoc
Function called for each item in an array.