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

x/denocordts/deps.ts>Collection#first

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