Skip to content

getIdByIndex

returns the ID of the item with the specified index

function getIdByIndex(
// the item index (zero-based numbering)
index: number|string
): id

id the item ID

If an item with such index doesn’t exist, the method returns undefined.