mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
8 lines
251 B
TypeScript
8 lines
251 B
TypeScript
/**
|
|
* A standard Fisher-Yates Array shuffle implementation which modifies the array in place.
|
|
*
|
|
* @method
|
|
* @param {any[]} array - The array to shuffle.
|
|
* @return {any[]} The original array, now shuffled.
|
|
*/
|
|
export default function (array: any): any;
|