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

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

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.hasAny
Re-export
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/src/lib.ts";

Checks if any of the elements exist in the collection.

Parameters

...keys: K[]
  • The keys of the elements to check for

Returns

boolean

true if any of the elements exist, false if none exist.