Statements (22)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Function
|
gptkbp:callsFor |
A function to execute for each element in the array.
The array find was called upon. The index of the current element being processed in the array. |
gptkbp:description |
Returns the value of the first element in the array that satisfies the provided testing function.
|
gptkbp:electronic_warfare |
Introduced in ECMAScript 2015 (ES6).
|
gptkbp:examples |
const found = array.find(element => element > 10);
|
gptkbp:first_held |
Only the first matching element is returned.
|
gptkbp:hasClimate |
The original array.
|
https://www.w3.org/2000/01/rdf-schema#label |
Array.prototype.find
|
gptkbp:landingGear |
Optional. Value to use as this when executing callback.
|
gptkbp:language |
array.find(callback(element[, index[, array]])[, thisArg])
|
gptkbp:lost_and_found |
Returns undefined if no matching element is found.
|
gptkbp:performance |
Generally faster than using a for loop for finding elements.
|
gptkbp:relatedPatent |
Finding an object in an array based on a property.
|
gptkbp:respondsTo |
The value of the first element in the array that satisfies the testing function, or undefined if no elements satisfy the testing function.
|
gptkbp:returnPolicy |
If false, the search continues.
If true, the element is returned. The current element being processed in the array. |
gptkbp:shape |
Can be polyfilled for older browsers.
|
gptkbp:supported |
Internet Explorer.
|
gptkbp:works_with |
Arrays.
|