UNPKG

rndlib

Version:

Easy to use randomizer functions with TypeScript support

8 lines (7 loc) 179 B
/** * Return a shallow copy the provided array and shuffle its contents. * * @param Array<T> * @returns Array<T> */ export declare function shuffle<T>(arr: T[]): T[];