getIdByIndex

returns the id of the item with the specified index

id getIdByIndex(number index);

Parameters

indexnumberthe item index (zero-based numbering)

Returns

idthe item id
Details

if an item with such index doesn't exist, method returns undefined value

See also
Back to top