@mindfulness/utils
Preparing search index...
array
justOne
Variable justOne
Const
justOne
:
<
T
>
(
...
args
:
[
input
:
T
|
T
[]
]
)
=>
undefined
|
T
= ...
Get the first item from an array of items
Type declaration
<
T
>
(
...
args
:
[
input
:
T
|
T
[]
]
)
:
undefined
|
T
Type Parameters
T
Parameters
...
args
:
[
input
:
T
|
T
[]
]
Returns
undefined
|
T
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