Array.find

Function/Meaning

Returns the subscript where the specified value first appears.

Type
Arrayclassmethod of
Syntax
find(value, offset:int=0) :int
Arguments
value

Search value

offset

Starting position

Return value

The position found. -1 if not found.

Explanation

The specified value is searched in order from the subscript at the search start position, and the subscript that appears first is returned.
Returns -1 if the specified value is not found.
Distinguished comparison (=== operator behavior) is used for comparison.