Have anybody an idea, how I can split these in Typescript or JS:
{ "AED": "United Arab Emirates Dirham", "AFN": "Afghan Afghani", "ALL": "Albanian Lek" }
I want only the names like this:
AED AFN ALL
Have anybody an idea, how I can split these in Typescript or JS:
{ "AED": "United Arab Emirates Dirham", "AFN": "Afghan Afghani", "ALL": "Albanian Lek" }
I want only the names like this:
AED AFN ALL
 
    
    you are doing it wrong, first of all modify your object to array of objects like below
let currencies = [
  {
    code: "AED",
    fullName: "United Arab Emirates Dirham"
  },
  {
    code: "AFN",
    fullName: "Afghan Afghani"
  },
  {
    code: "ALL",
    fullName: "Albanian Lek"
  }
];
now you can traverse through it like
currencies.forEach(val => {
  //use val.code to get desired currencies codes
})
