repo
replacements.fyi

// package

arr-diff

type: "module"

// preferences

// replacements (1)

snippet::array-difference

Simple or drop-in replacement

This 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));