I stumbled on this too and found that the listvalue object has the property or function get which can be called by passing the attribute name.
for e.g.: this is what i did: Assuming there is a cityName property key of type=”attribute” for the data source from which you want to pull the data.
String(cityName.get(item).value
Hope it helps.