UNPKG

froebel

Version:
11 lines (10 loc) 342 B
/** * Shuffles `list` using the Fisher-Yates shuffle algorithm. * The original `list` is not modified and the shuffled list is returned. */ declare const shuffle: <T>(list: T[]) => T[]; export default shuffle; /** * Same as {@link shuffle} but shuffles `list` in place. */ export declare const shuffleInPlace: (list: unknown[]) => void;