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

x/froebel/list.ts>atWrap

A strictly typed utility library.
Go to Latest
variable atWrap
import { atWrap } from "https://deno.land/x/froebel@v0.18.0/list.ts";

Access list at i % length. Negative indexes start indexing the last element as [-1] and wrap around to the back.

type

<T>(arr: T[], i: number) => T