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

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

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

Identical to Map.has(). Checks if an element exists in the collection.

Parameters

key: K
  • The key of the element to check for

Returns

boolean

true if the element exists, false if it does not exist.