Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/array
atCycle
Function atCycle
atCycle
<
T
>
(
values
:
T
[]
,
index
:
number
)
:
T
Like
at
but wraps using modulo on length.
Type Parameters
T
Parameters
values
:
T
[]
index
:
number
Returns
T
Throws
if array is empty or index is not a safe integer.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
Skill
GitHub
Prelude API
Loading...
Like
atbut wraps using modulo on length.