Returns the total number of elements in the array which have a property matching the given value.
name | type | arguments | description |
---|---|---|---|
array | array |
The array to search. |
|
property | string |
The property to test on each array element. |
|
value | * |
The value to test the property against. Must pass a strict ( |
|
startIndex | number | <optional> |
An optional start index to search from. |
endIndex | number | <optional> |
An optional end index to search to. |
The total number of elements with properties matching the given value.