Skip to main content
Module

x/froebel/mod.ts>shuffle

A strictly typed utility library.
Go to Latest
variable shuffle
import { shuffle } from "https://deno.land/x/froebel@v0.22.0/mod.ts";

Shuffles list using the Fisher-Yates shuffle algorithm. The original list is not modified and the shuffled list is returned.

type

<T>(list: T[]) => T[]