array one minus array one js code example Example: array minus array javascript let difference = arr1.filter(x => !arr2.includes(x));