Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/revoltio/deps.ts>Collection#equals

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.equals
import { Collection } from "https://deno.land/x/revoltio@v1.0.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: ReadonlyCollection<K, V>

Collection to compare with

Returns

boolean

Whether the collections have identical contents