Skip to content

shuffle

Randomly shuffles elements within an array.

Usage

ts
import { shuffle } from 'rattail'

shuffle([1, 2, 3]) // return shuffled array

Arguments

ArgTypeDefaults
arrArray

Return

Type
Array