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

x/denocordts/deps.ts>Collection#has

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