getIdByIndex

returns the ID of the item with the specified index

id getIdByIndex(number|string index);

Parameters

indexnumber|stringthe item index (zero-based numbering)

Returns

idthe item ID
Details

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

See also
Back to top