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

x/collection/src/Collection.ts>Collection#firstKey

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

Obtains the first key(s) in this collection.

Returns

K | undefined

A single key if no amount is provided or an array of keys, starting from the end if amount is negative

Parameters

amount: number