Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

ArrayUtility.FindIndex

public static function FindIndex(array: T[], match: Predicate<T>): int;

Returns

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

Description

Find the index of the first element that satisfies the predicate.