Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/list.ts>shuffle

A strictly typed utility library.
Go to Latest
variable shuffle
import { shuffle } from "https://deno.land/x/froebel@v0.18.0/list.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[]