Function arrayShuffle

  • 数组乱序

    Parameters

    • arr: any[]

      数组

    Returns any[]

    arrayShuffle([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); /// [5, 9, 1, 10, 2, 6, 4, 8, 3, 7]