getIndexById
returns the index of the item with the specified ID
function getIndexById( // the item ID id: number|string): voidDetails
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): voidIf the ID is not found, the method returns -1