Checks whether an element in a collection passes a test.
Function invoked for each collection element until test condition is true.
Function invoked for each collection element until test condition is true.
Checks whether an element in a collection passes a test.
Checks whether an element in a collection passes a test.
Function invoked for each collection element until test condition is true.
Checks whether an element in a collection passes a test.
Function invoked for each collection element until test condition is true.
Checks whether an element in a collection passes a test.
Until a test condition is true, invokes a function once for each element in a collection.
When invoked, both the predicate function and the function to apply are provided three arguments:
value
: collection valueindex
: collection indexcollection
: the input collectioninput collection
function which indicates whether to stop iterating over a collection
function to invoke
execution context for the applied function
input collection
function predicate( v, key, collection ) {
return ( v !== v );
}
function log( v, key, collection ) {
console.log( '%s: %d', key, v );
}
var arr = [ 1, 2, 3, 4, NaN, 5 ];
untilEach( arr, predicate, log );
Function invoked for each collection element until test condition is true.
collection value
collection index