So starting from an array of objects I need to find if any of them are called Google. If so I need to return the full object. Now It is returning true
const companies = [ { id: 1, username: 'facebook', website: 'www.facebook.com' }, { id: 2, username: 'google', website: 'www.google.com' }, { id: 3, username: 'linkedin', website: 'www.linkedin.com' } ]
const checkCompany = company => company.name === "google";
console.log(companies.some(checkCompany)); // true