1.0.1 • Published 6 years ago

skk-shuffle v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

skk-shuffle

Build Status npm version A small module named skk-shuffle to shuffle a array. You can determine to change the source arr or return a new array by pass true as the second argument.

Example

install

  npm install --save skk-shuffle

usage

  var shuffle = require('skk-shuffle');

  var arr = [1,2,3,4,5,6,7,8,9,10,11,12,13,14];

  shuffle(arr) // return arr;
  shuffle(arr, true) // return a new array without change source arr