@alextheman/utility - v4.3.5
    Preparing search index...

    Function randomiseArray

    • Randomises the order of a given array and returns the result in a new array without mutating the original.

      Type Parameters

      • ItemType

        The type of the array items.

      Parameters

      • array: ItemType[]

        The array to randomise.

      Returns ItemType[]

      A new array with the items randomised.