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

x/revoltio/deps.ts>Collection#lastKey

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.lastKey
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/deps.ts";

Obtains the last key(s) in this collection.

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