score:1

Accepted answer

the only way is using a map:

console.log([ {
  "contacttype" : "authorised_signatory",
  "contacttypename" : "authorised signatory"
}, {
  "contacttype" : "legal_contact",
  "contacttypename" : "legal contact"
}, {
  "contacttype" : "primary_contact",
  "contacttypename" : "primary contact"
} ].map(e => e.contacttype));


Related Query

More Query from same tag