GitHub

shuffle

Immutable Fisher-Yates Shuffle https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle

import { shuffle } from '@daffodil/core'
const shuffle: <T>(array: T[]) => T[]