Answers for "filter a common element javascript"

10

javascript do arrays intersect

let intersection = arrA.filter(x => arrB.includes(x));
Posted by: Guest on March-31-2020
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 "filter a common element javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language