31/03/2020 Development / java script

const diff = (a, b) => b.filter((i) => a.indexOf(i) === -1);
diff(['a', 'b'], ['a', 'b', 'c', 'd']);

espero que sirva!