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#at

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

Identical to Array.at(). Returns the item at a given index, allowing for positive and negative integers. Negative integers count back from the last item in the collection.

Parameters

index: number

The index of the element to obtain

Returns

V | undefined