Count how many items in an array or an object pass a given tester function.
This function is valid in
v2.19.0 to v2.20.0.
This function has been downloaded 5 times.
If this is an array or an object all of the items that pass the
tester function will be counted. If this is a string all of the characters that pass the
tester function will be counted.
Function that will take in (1) each value, (2) the corresponding key, and (3) a reference to
arrOrObj. If the function returns a
true-ish value the count will be incremented.
Indicates whether or not all items, including the non-owned ones, should be traversed and included in the count.
The number of times
tester returned a
This function requires the following functions which are included automatically:
Gets the native type name of a primitive or an object. Unlike YourJS.typeOf(), the types are solely determined by the system.
Traverses all the characters in a string or all of the items in an array or an object, executing a function on each one.