v0.13.6

table.indexof

functionimplementedavailable in: camelot

Returns the first integer index whose value compares equal to the specified value, searching consecutively from index 1 until the first nil value.

signaturewowlua
function table.indexof(    table: table,    value: any?): number?

Parameters

nametypedescription
tabletableThe table to search.
valueany?The value for which to search.

Returns

index · number? · The first matching index, or nil if no match is found.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaTableExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.