getIndexById
returns the index of the item with the specified ID
function getIndexById( // the item ID id: number|string): void
Details
Section titled “Details”If the ID is not found, the method returns -1
returns the index of the item with the specified ID
function getIndexById( // the item ID id: number|string): void
If the ID is not found, the method returns -1