• Randomizes the order of the values of an array, returning a new array

    Example

    const foo = [1, 2, 3];
    shuffle(foo); // [2,3,1], foo = [1,2,3]

    Type Parameters

    • T

    Parameters

    • arr: T[]

    Returns T[]

Generated using TypeDoc