Skip to content

Repository files navigation

@lucid-softworks/array-difference

Return values that do not appear in another collection.

import { difference } from "@lucid-softworks/array-difference";

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

Input order and retained duplicates are preserved. Equality follows Set semantics: NaN matches NaN, zero signs are equal, and objects compare by reference.

Releases

Packages

Contributors

Languages