Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array filter elements greater than

function isGreater(element, index, array) { 
   return (element >= 10); 
} 
          
let testElemets = [12, 5, 8, 130, 44].filter(isGreater); 
console.log("Test Value : " + testElemets );
 
PREVIOUS NEXT
Tagged: #javascript #array #filter #elements #greater
ADD COMMENT
Topic
Name
2+6 =