Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

ArrayUtility.IndexOf

static function IndexOf(array: T[], value: T): int;
static int IndexOf(T[] array, T value);
static def IndexOf(array as T[], value as T) as int

Returns

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

Description

Index of first element with value value.