Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/deps.ts>Collection#equals

An Object Oriented Discord API wrapper for Deno.
Latest
method Collection.prototype.equals
import { Collection } from "https://deno.land/x/denocordts@1.2.0/deps.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