Module

x/lodash_es/mod.ts>shuffle

lodash for deno use
Latest
function shuffle
import { shuffle } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

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.