common-stuff
Preparing search index...
shuffle
Function shuffle
shuffle
<
T
>
(
array
:
T
[]
)
:
T
[]
Shuffles the the array.
Type Parameters
T
Parameters
array
:
T
[]
Returns
T
[]
Example
shuffle
([
1
,
2
,
3
])
// [2, 1, 3]
Copy
shuffle
<
T
>
(
array
:
readonly
T
[]
)
:
readonly
T
[]
Shuffles the the array.
Type Parameters
T
Parameters
array
:
readonly
T
[]
Returns
readonly
T
[]
Example
shuffle
([
1
,
2
,
3
])
// [2, 1, 3]
Copy
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
common-stuff
Loading...
Shuffles the the array.