shuffle

Collection
since 0.1.0

Arguments

  • Array|Object The collection to shuffle.

Returns

Array the new shuffled array.

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

Example of Lodash _.shuffle

_.shuffle([1, 2, 3, 4]);
// => [4, 1, 3, 2]