skk-shuffle

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i skk-shuffle

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.78 kB

Total Files

6

Last publish

Collaborators

  • softkaikai