0
After fetching the data from API, it’s better to map it into your proper structure (a JavaScript Object). So you can have control on the emptiness of details (properties) or transforming the data for other purposes.
For example:
"item": {
"firstItem": "currency",
"secondItem" : "timeZone"
...
}
const item = {currency: item.firstItem, timeZone: item.secondItem, ...}
Source:stackexchange.com