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

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

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

Identical to Map.delete(). Deletes an element from the collection.

Parameters

key: K
  • The key to delete from the collection

Returns

boolean

true if the element was removed, false if the element does not exist.