// package
arr-diff
type: "module"
// preferences
// replacements (1)
snippet::array-difference
Simple or drop-in replacementThis package is no longer necessary. You can use a combination of `filter` and `includes` to calculate the difference between two arrays.
// example
const difference = (a, b) =>
a.filter((item) => !b.includes(item));