shuffle()
Creates a new array with the items in a random order.
This function is valid in
v2.0.0 to v2.24.3.
This function has been downloaded 75 times.
Parameter
{Array}
arr
Array to copy and shuffle.
Returns
{Array}
Shuffled copy of arr
.
Required Function
This function directly requires the following function which is included automatically:
-
has()
Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.