The item() method of the NamedNodeMap interface returns the item in the map matching the index.
item()
MDN Reference