UNPKG
froebel
Version:
latest (0.23.2)
0.23.2
0.23.1
0.23.0
0.22.0
0.21.3
0.21.2
0.21.1
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.1
0.15.0
0.14.4
0.14.3
0.14.1
TypeScript utility library
github.com/MathisBullinger/froebel
MathisBullinger/froebel
froebel
/
atWrap.d.ts
5 lines
(4 loc)
•
203 B
TypeScript
View Raw
1
2
3
4
5
/** Access list at `i % length`. Negative indexes start indexing the last * element as `[-1]` and wrap around to the back. */
declare
const
atWrap
: <T>
(
arr
: T[],
i
:
number
) =>
T;
export
default
atWrap;