JS найти ценность в массиве 2022
const myArray = ["sun","moon","earth"];
const lookingFor = "earth"
console.log(myArray.find(planet => { return planet === lookingFor })
Famous Flamingo