@pleisto/active-support
Preparing search index...
sample
Variable sample
Const
sample
:
<
T
>
(
array
:
readonly
T
[]
)
=>
T
|
null
Draw a random item from a list. Returns null if the list is empty
Type declaration
<
T
>
(
array
:
readonly
T
[]
)
:
T
|
null
Type Parameters
T
Parameters
array
:
readonly
T
[]
Returns
T
|
null
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@pleisto/active-support
Loading...
Draw a random item from a list. Returns null if the list is empty