jeudi 2 juillet 2020

JS6 - How can I loop through an array of objects and filter where country = UK

const arr =[ { id:1, name: 'Name', country: 'UK', }, { id:2, name: 'Name', country: 'USA', }, { id:3, name: 'Name', country: 'USA', }, { id:4, name: 'Name', country: 'UK', }, ];




Aucun commentaire:

Enregistrer un commentaire