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

x/collection/src/Collection.ts>default#equals

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

Checks if this collection shares identical items with another. This is different to checking for equality using equal-signs, because the collections may be different objects, but contain the same data.

Parameters

collection: Collection<K, V>

Collection to compare with

Returns

boolean

Whether the collections have identical contents