Skip to main content
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.22.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