Latest
function shuffle
import { shuffle } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/collection.js";

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

Examples

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

Parameters

collection

The collection to shuffle.