Documentation

getIndexById

returns the index of the item with the specified id

number getIndexById(id id);

Parameters

ididthe item id

Returns

numberthe item's index

See also

Details

if id is not found then method returns -1

With tree-like structures, use the getBranchIndex method.

Back to top