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

x/aether/deps.ts>YAML.YAMLMap#add

A Deno library to interface with the Discord API
Latest
method YAML.YAMLMap.prototype.add
import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { YAMLMap } = YAML;

Adds a value to the collection.

Parameters

pair: Pair<K, V> | { key: K; value: V; }
  • If not set true, using a key that is already in the collection will throw. Otherwise, overwrites the previous value.
optional
overwrite: boolean