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

x/revoltio/src/lib.ts>Collection#first

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

Obtains the first value(s) in this collection.

Returns

V | undefined

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

Parameters

amount: number