- Source:
Methods
(static) count(arraynon-null, check) → {number}
Count the number of items in the list that pass the check function.
Parameters:
Name | Type | Description |
---|---|---|
array |
Array.<T> | |
check |
function(T):boolean |
- Source:
Returns:
- Type
- number
(static) defaultEquals(a, b) → {boolean}
Returns whether the two values contain the same value. This correctly
handles comparisons involving NaN.
Parameters:
Name | Type | Description |
---|---|---|
a |
T | |
b |
T |
- Source:
Returns:
- Type
- boolean
(static) hasSameElements(anon-null, bnon-null, compareFn) → {boolean}
Determines if the given arrays contain the same elements.
Parameters:
Name | Type | Description |
---|---|---|
a |
Array.<T> | |
b |
Array.<T> | |
compareFn |
function(T, T):boolean= |
- Source:
Returns:
- Type
- boolean
(static) remove(arraynon-null, element)
Remove given element from array (assumes no duplicates).
Parameters:
Name | Type | Description |
---|---|---|
array |
Array.<T> | |
element |
T |
- Source: