Collection
Shuffle

_.shuffle(collection)

Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.

Arguments

collection (Array|Object): The collection to shuffle.

Returns

(Array): Returns the new shuffled array.

Example

Deep