1.0.1 • Published 7 years ago

a-shuffle v1.0.1

Weekly downloads
11
License
ISC
Repository
github
Last release
7 years ago

a-shuffle

Returns a shuffled copy of the list, using a version of the Fisher-Yates shuffle

Install

$ npm install --save a-shuffle

Example

var shuffle = require('a-shuffle');
console.log(shuffle([1, 2, 3, 4, 5, 6]));
//=> [3, 5, 4, 1, 2, 6]

require('a-shuffle')(array)

Arguments:

  • [array]: list

Returns: Returns a shuffled copy of the list

License

© 2016 vikram. MIT License