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

x/denocordts/deps.ts>Collection#firstKey

An Object Oriented Discord API wrapper for Deno.
Latest
method Collection.prototype.firstKey
import { Collection } from "https://deno.land/x/denocordts@1.2.0/deps.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