MCPcopy Create free account
hub / github.com/Wisembly/basil.js / _shuffle

Function _shuffle

src/basil.set.js:25–28  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

23 },
24 //http://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array-in-javascript
25 _shuffle = function (o){
26 for (var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
27 return o;
28 },
29 _union = function () {
30 var args = arguments[0],
31 allElements = [],

Callers 1

BasilSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected