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

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

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

Identical to Map.get(). Gets an element with the specified key, and returns its value, or undefined if the element does not exist.

Parameters

key: K
  • The key to get from this collection

Returns

V | undefined