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

x/revoltio/src/lib.ts>Collection#equals

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.equals
Re-export
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/src/lib.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