Skip to content

difference

Returns elements present in source but not in other.

ts
import { difference } from '@vielzeug/toolkit';

difference([1, 2, 3], [2, 4]); // [1, 3]