
PK 
| ADDRLIN : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/dist/methods/ |
| Current File : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/dist/methods/shuffle.js |
'use strict';
var values = require('../helpers/values');
module.exports = function shuffle() {
var items = values(this.items);
var j = void 0;
var x = void 0;
var i = void 0;
for (i = items.length; i; i -= 1) {
j = Math.floor(Math.random() * i);
x = items[i - 1];
items[i - 1] = items[j];
items[j] = x;
}
this.items = items;
return this;
};
