Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ArrayUtility.IndexOf

Switch to Manual
public static function IndexOf(array: T[], value: T): int;

Parameters

Returns

int The zero-based index of the element, if found; otherwise -1.

Description

Index of first element with value value.