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 github.com #
 
PREVIOUS NEXT
Tagged: #js #find
ADD COMMENT
Topic
Name
3+1 =