- Source:
Methods
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
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
equal(anon-null, bnon-null, compareFn) → {boolean}
Determines if the given arrays contain equal elements in the same order.
Parameters:
Name | Type | Description |
---|---|---|
a |
Array.<T> | |
b |
Array.<T> | |
compareFn |
function(T, T):boolean= |
- Source:
Returns:
- Type
- boolean
hasSameElements(anon-null, bnon-null, compareFn) → {boolean}
Determines if the given arrays contain equal elements in any order.
Parameters:
Name | Type | Description |
---|---|---|
a |
Array.<T> | |
b |
Array.<T> | |
compareFn |
function(T, T):boolean= |
- Source:
Returns:
- Type
- boolean
remove(arraynon-null, element)
Remove given element from array (assumes no duplicates).
Parameters:
Name | Type | Description |
---|---|---|
array |
Array.<T> | |
element |
T |
- Source: