zeed
    Preparing search index...

    Function arrayShuffleForce

    • Shuffle array and ensure the returned order differs from the original when possible. If array length is 0 or 1 it is returned unchanged.

      Type Parameters

      • T

        element type

      Parameters

      • arr: T[]

      Returns T[]

      a shuffled array that's different from the input when feasible