Table

table.find

Returns the numeric index of the first occurence of value, starting from init, or nil if value isn't present in the table. The default for init is 1.

Syntax

find(table, value: any [, init: integer(1)])  returns  any