Array.find

Find first object in array matching criteria.

Syntax

array.find( predicate_function );

Parameters

Parameter Description
predicate_function function with one parameter, called with element of array as an argument

Returns

Returns array element matching criteria or null if no such element is found.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.