Optional
mapper: ((value: any) => any)Alias of .toMap(value => [mapper(value), value]).values().toArray()
Optional
mapper: ((value: any) => any)Gets the index that the given item would occupy in this array, assuming this array is sorted by the given list of sort functions.
The item to get the index of.
Rest
...sorters: List<any>See sort for more information
Inserts a single item in this array, at the sorted position as is calculated by the given list of sort functions.
The new array length
The item to insert.
Rest
...sorters: List<any>See sort for more information
Toggles the given value in this array.
The value to toggle in the array.
Optional
includes: booleanWhether the value should be present in the array.
true
— include in the arrayfalse
— remove from the arrayundefined
— toggle whether it's in the array.
(If it currently is, remove it. If it's not, add it.)Generated using TypeDoc
Alias of
.toSet().toArray()