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

x/denocordts/deps.ts>Collection#keyArray

An Object Oriented Discord API wrapper for Deno.
Latest
method Collection.prototype.keyArray
import { Collection } from "https://deno.land/x/denocordts@1.2.0/deps.ts";

Creates an ordered array of the keys of this collection, and caches it internally. The array will only be reconstructed if an item is added to or removed from the collection, or if you change the length of the array itself. If you don't want this caching behavior, use [...collection.keys()] or Array.from(collection.keys()) instead.