getIndexById
returns the index of the item with the specified ID
number getIndexById(number|string id);
| id | number|string | the item ID |
Details
If the ID is not found, the method returns -1
With tree-like structures, use the getBranchIndex method.
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.