UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

9 lines (7 loc) 224 B
interface ShuffleArrayOptions { copy?: boolean; random?: () => number; } declare function shuffleArray<T>(arr: T[], options?: ShuffleArrayOptions): T[]; export { shuffleArray }; export type { ShuffleArrayOptions };