first finds the first item that matches a predicate. Returns the first item of array if no predicate is provided.
first
An array
A predicate function.
Optional
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, the first element is returned.
The first item that matches the predicate, or None if no item matches.
None
first
finds the first item that matches a predicate. Returns the first item of array if no predicate is provided.