@haraldki/jsonaccess
Preparing search index...
JsonAccess
jsonGetUnion
Function jsonGetUnion
jsonGetUnion
<
PRIMITIVE
extends
string
|
number
|
boolean
>
(
data
:
unknown
,
field
:
string
|
number
,
values
:
readonly
PRIMITIVE
[]
,
)
:
Maybe
<
PRIMITIVE
>
Picks the
field
from
data
with
jsonGet
and then applies
jsonAsUnion
.
Type Parameters
PRIMITIVE
extends
string
|
number
|
boolean
Parameters
data
:
unknown
field
:
string
|
number
values
:
readonly
PRIMITIVE
[]
Returns
Maybe
<
PRIMITIVE
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@haraldki/jsonaccess
Loading...
Picks the
fieldfromdatawith jsonGet and then applies jsonAsUnion.