const shuffled Target Style export const shuffled = (array) => { Returns a shuffled copy of an array. Target style API. Preferred for new code. ParametersarrayT[] ReturnsT[] Exampleconst randomized = shuffled([1, 2, 3])
const shuffleArray Legacy Style export const shuffleArray = (array) => { Shuffles an array in place. Legacy API. Kept for older code and not the preferred choice for new code. ParametersarrayT[] Returnsvoid