var arr1= ['test', 'test1', 'test2', 'test3'];
var arr2= ['test', 'test1'];
expected output ['test2','test3'] I am able to achieve this in the browser console using -
arr1.filter(x => !arr2.includes(x));
But the problem is that "includes" seems to be not supporting in ES6.
Is there an alternative? Thanks!