Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js find

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

const isLarger = (element) => element > 45 ;

const found = array1.find(isLarger);

console.log(found);
//output 50
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #find
ADD COMMENT
Topic
Name
7+8 =