let customers = [ { id: 0, name: 'free' }, { id: 1, name: 'time' }, { id: 2, name: 'learn' } ]; let customer = customers.find(cust => cust.name === 'learn'); console.log(customer); --> { id: 2, name: 'learn' }