returns the id of the item with the specified index
if item with such index doesn't exists method returns undefined value