@writetome51/array-get-shuffled
v2.0.1
Published
It returns a copy of the array with the order of items randomized
Maintainers
Readme
getShuffled(array): any[]
Returns a new, shuffled version of array. It does not modify array.
Example
let arr = [1,2,3,4,5,6,7,8];
getShuffled(arr);
// --> [4,8,3,1,5,7,6,2]Installation
npm i @writetome51/array-get-shuffled
Loading
import {getShuffled} from '@writetome51/array-get-shuffled';