Home > @antv/dw-random > BasicRandom > shuffle
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Given an array, scramble the order and return it.
Signature:
shuffle<T>(array: T[]): T[];
Parameter | Type | Description |
---|---|---|
array | T[] |
the array to process |
Returns:
T[]