Answers for "javascript array filter elements greater than"

1

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 );
Posted by: Guest on May-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language