@mindfulness/utils
Preparing search index...
array
justOne
Variable justOne
Const
justOne
:
<
T
>
(
...
args
:
[
input
:
T
|
T
[]
]
)
=>
T
|
undefined
= ...
Get the first item from an array of items
Type Declaration
<
T
>
(
...
args
:
[
input
:
T
|
T
[]
]
)
:
T
|
undefined
Type Parameters
T
Parameters
...
args
:
[
input
:
T
|
T
[]
]
Returns
T
|
undefined
The first item in the array
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@mindfulness/utils
Loading...
Get the first item from an array of items