Skip to content

table.indexof

Jason Perkins edited this page May 26, 2015 · 3 revisions

Returns the key or index of a value within a table.

table.indexof(arr, value)

Parameters

arr is a table containing indexed elements. value is the value for which to search.

Return Value

The key or index of the value if it is present in the table; nil otherwise.

Availability

Premake 5.0 or later.

Clone this wiki locally