How to filter one array from other array es6

const filtered = arr1.filter( (e) =>  !arr2.includes(e.key));

Comments

Popular posts from this blog

How to Remove Duplicates from Array in Javascript ES6

Es6 how to check if value is not null or undefined?