@mikuroxina/mini-fn
Preparing search index...
Optical
Lens
key
Function key
key
<
const
K
extends
PropertyKey
,
O
extends
Readonly
<
Record
<
K
,
unknown
>
>
,
V
=
O
[
K
]
,
>
(
k
:
K
,
)
:
Optic
<
O
,
O
,
O
[
K
]
,
V
>
Focuses to the given key of object.
Type Parameters
const
K
extends
PropertyKey
O
extends
Readonly
<
Record
<
K
,
unknown
>
>
V
=
O
[
K
]
Parameters
k
:
K
The key of object to extract.
Returns
Optic
<
O
,
O
,
O
[
K
]
,
V
>
The lens for indexing.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mikuroxina/mini-fn
Loading...
Focuses to the given key of object.