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

    Type Parameters

    • T

    Parameters

    • collection: undefined | null | List<T>

      The collection to shuffle.

    Returns T[]

    Returns the new shuffled array.

  • Type Parameters

    • T extends object

    Parameters

    • collection: undefined | null | T

    Returns T[keyof T][]

    _.shuffle