common-stuff
    Preparing search index...

    Function shuffle

    • Shuffles the the array.

      Type Parameters

      • T

      Parameters

      • array: T[]

      Returns T[]

      shuffle([1, 2, 3])
      // [2, 1, 3]
    • Shuffles the the array.

      Type Parameters

      • T

      Parameters

      • array: readonly T[]

      Returns readonly T[]

      shuffle([1, 2, 3])
      // [2, 1, 3]