Use import/export since we are using babel, removed unused imports

This commit is contained in:
Simon Schick
2015-11-28 17:57:22 +01:00
parent 47b6f6cadd
commit faa744b1e3
25 changed files with 151 additions and 185 deletions

View File

@@ -1,6 +1,6 @@
"use strict";
class Cache extends Array {
export default class Cache extends Array {
constructor(discrim, limit) {
super();
this.discrim = discrim || "id";
@@ -61,7 +61,7 @@ class Cache extends Array {
return false;
}
}
random() {
return this[Math.floor(Math.random()*this.length)];
}
@@ -79,5 +79,3 @@ class Cache extends Array {
return false;
}
}
module.exports = Cache;