Shuffles any iterable data. Returns new data (doesn't modify original).
Supported types: Array, Object, String
.
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);