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

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

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

The intersect method returns a new structure containing items where the keys are present in both original structures.

Parameters

other: Collection<K, V>

The other Collection to filter against