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

x/aether/deps.ts>YAML.YAMLSeq#set

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

Sets a value in this collection. For !!set, value needs to be a boolean to add/remove the item from the set.

If key does not contain a representation of an integer, this will throw. It may be wrapped in a Scalar.

Parameters

key: unknown
value: T