let itemYouWant = null; array.forEach((item) => { if (item.name === 'string 1') { itemYouWant = item; } }); console.log(itemYouWant);