app-workflow_engine

On this page:

arrayLastIndexOf

Summary

Searches the array for the last index of an element.

Description

Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.

Route

No Northbound API Available

Roles

Parameters

DetailsExampleSchema
Name Type Required Description
arr array yes The array to search
searchElement * yes Element to locate in the array
fromIndex number no The index at which to start searching backwards

Return

DetailsExampleSchema
Name Type Description
index number The last index of the element in the array; -1 if not found