Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/collection/src/Collection.ts>Collection#difference

Utility data structure for Deno (Discord.js Collection).
Latest
method Collection.prototype.difference
import { Collection } from "https://deno.land/x/collection@v1.0.1/src/Collection.ts";

The difference method returns a new structure containing items where the key is present in one of the original structures but not the other.

Parameters

other: Collection<K, V>

The other Collection to filter against