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

x/revoltio/deps.ts>Collection#at

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.at
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/deps.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