Answers for "Find speacific object from an array in javascript"

0

Find speacific object from an array in javascript

const friendsList = ["Abir", "Lalkhan", "Lion", "Shamol", "Kabir", "Shabir"];
if (friendsList.indexOf("Lion") != -1) {
    console.log("Lion Exists");
}
//Output: Lion Exists
Posted by: Guest on December-26-2021

Code answers related to "Find speacific object from an array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language