shuffle-iterable

0.0.4 • Public • Published

shuffle-iterable

Shuffles any iterable data. Returns new data (doesn't modify original). Supported types: Array, Object, String.

Update: temporarily removed es6 types support.

Usage

npm install shuffle-iterable
var shuffle = require('shuffle-iterable');
 
var obj = {a: 5, b: 10, c: 15};
shuffle(obj); // new object randomly shuffled by obj keys;
 
var arr = [3, 5, 9];
shuffle(arr);
 
var str = 'abc';
shuffle(str);

Readme

Keywords

Package Sidebar

Install

npm i shuffle-iterable

Weekly Downloads

1

Version

0.0.4

License

ISC

Last publish

Collaborators

  • lesha-spr