JSFiddle - React, Tailwind, and code Playground
JavaScript
[1, 2, 3, 4].filter(
function(e) {
return this.indexOf(e) < 0;
}, [2, 4]).filter(function(b) {
return this.indexOf(b)<0; }, [1])
[1, 2, 3, 4].filter(
function(e) {
return this.indexOf(e) < 0;
}, [2, 4]).filter(function(b) {
return this.indexOf(b)<0; }, [1])