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

x/denocordts/deps.ts>Collection#lastKey

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

Obtains the last key(s) in this collection. This relies on Collection#keyArray, and thus the caching mechanism applies here as well.

Returns

K | undefined

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

Parameters

amount: number