Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/revoltio/deps.ts>Collection#last

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

Obtains the last value(s) in this collection.

Returns

V | undefined

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

Parameters

amount: number