The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientUtils.ArrayIndexOf(array, element) Method

Searches for the specified array item and returns the zero-based index of its first occurrence within the specified array object.

Declaration

static ArrayIndexOf(array: any[], element: any): number

Parameters

Name Type Description
array any[]

An object that specifies the array to manipulate.

element any

An object that specifies the array item to locate.

Returns

Type Description
number

The zero-based index of the first occurrence of the specified array item within the specified array, if found; otherwise, negative one (-1).

See Also