Comparing version 4.0.1 to 4.1.0
10
index.js
@@ -27,2 +27,10 @@ const is = require('arc-is'); | ||
shuffle() { | ||
for (let i = this.length - 1; i > 0; i--) { | ||
const j = Math.floor(Math.random() * (i + 1)); | ||
[this[i], this[j]] = [this[j], this[i]]; | ||
} | ||
return this; | ||
} | ||
//This is our format for evaluating named prototypes | ||
@@ -53,3 +61,3 @@ toString(){ | ||
} | ||
static wrap(_array){ | ||
@@ -56,0 +64,0 @@ if(is(_array,true) === 'ArcArray'){ |
{ | ||
"name": "arc-array", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "An array convenience subclass", | ||
@@ -26,4 +26,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tap": "^5.7.1" | ||
"jest": "^24.9.0" | ||
} | ||
} |
7367
132