Array.includes

Function/Meaning

Determines if it contains the specified value.

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

Search value

offset

Starting position

Return value

True if found, false if not found.

Explanation

It looks at the specified value in order from the subscript of the search start position, and returns whether the specified value exists.
Distinguished comparison (=== operator behavior) is used for comparison.