core3-utils

@wixc3/common on Github

Home > @wixc3/common > shuffle

shuffle() function

Shuffles an array

Signature:

export declare function shuffle<T>(array: T[]): T[];

Parameters

Parameter Type Description
array T\[\]

Returns:

T[]

a new array with the same elements in a random order