Answers for "find number in an array javascript"

14

js find value in array

const array1 = [5, 12, 8, 130, 44];

const found = array1.find(element => element > 10);

console.log(found);
// expected output: 12
Posted by: Guest on June-01-2020
1

js to find value in array

console.log( simpleArray.find(e => e === 7) )
Posted by: Guest on September-02-2021

Code answers related to "find number in an array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language