Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

ArrayUtility.FindIndex

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

Parameters

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.