//#region src/Array/shuffle.d.ts /** * # shuffle * * ```ts * function Array.shuffle(target: readonly T[]): T[] * ``` * * Returns a new array with the elements of `array` randomly shuffled. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.shuffle([1, 2, 3, 4]); // [3, 1, 4, 2] (random) * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3, 4], Array.shuffle()); // [3, 1, 4, 2] (random) * ``` * */ declare const shuffle: { (): (target: readonly T[]) => T[]; (target: readonly T[]): T[]; }; //#endregion export { shuffle };