Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Array find()

const numbers = [4, 9, 16, 25, 29];
let first = numbers.find(myFunction);

function myFunction(value, index, array) {
  return value > 18;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Array
ADD COMMENT
Topic
Name
8+9 =