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

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

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

Identical to Map.set(). Sets a new element in the collection with the specified key and value.

Parameters

key: K
  • The key of the element to add
value: V
  • The value of the element to add