last finds the last item that matches a predicate. Returns the last item of array if no predicate is provided.
last
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 last element is returned.
The last item that matches the predicate, or None if no item matches.
None
last
finds the last item that matches a predicate. Returns the last item of array if no predicate is provided.