GitHub

shuffle

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

API

const shuffle: <T>(array: T[]) => T[]