@mikuroxina/mini-fn
Preparing search index...
Optical
Lens
nth
Function nth
nth
<
const
I
extends
number
,
Tuple
extends
readonly
unknown
[]
,
V
=
Tuple
[
I
]
>
(
index
:
I
,
)
:
Optic
<
Tuple
,
Tuple
,
Tuple
[
I
]
,
V
>
Focuses to the given index of array.
Type Parameters
const
I
extends
number
Tuple
extends
readonly
unknown
[]
V
=
Tuple
[
I
]
Parameters
index
:
I
The index of array to extract.
Returns
Optic
<
Tuple
,
Tuple
,
Tuple
[
I
]
,
V
>
The lens for indexing.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mikuroxina/mini-fn
Loading...
Focuses to the given index of array.