Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array prototype find javascript

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

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

console.log(found);

// expected output: 12
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #array #prototype #find #javascript
ADD COMMENT
Topic
Name
8+5 =