• Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 4,563 bytes
    • Micro-dash: 965 bytes

    Type Parameters

    • T

    Parameters

    • array: Nil | readonly T[]

    Returns T[]

  • Type Parameters

    • T

    Parameters

    • object: Nil | T

    Returns T[keyof T][]