Function immutableShuffleArray

  • Returns a shuffled copy of the original array using the Fisher-Yates algorithm. This function is similar to shuffleArray but does not modify the original array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      the array to be shuffled

    Returns any[]

    a new array containing the shuffled elements

Generated using TypeDoc