getIdByIndex

returns the ID of the item with the specified index

id getIdByIndex(number|string index);
indexnumber|stringthe item index (zero-based numbering)
idthe item ID
Details

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

See also
Back to top