mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Added cache.random() and node engine to package.json
This commit is contained in:
@@ -83,6 +83,10 @@ var Cache = (function (_Array) {
|
||||
}
|
||||
};
|
||||
|
||||
Cache.prototype.random = function random() {
|
||||
return this[Math.floor(Math.random() * this.length)];
|
||||
};
|
||||
|
||||
Cache.prototype.remove = function remove(data) {
|
||||
var index = this.indexOf(data);
|
||||
if (~index) {
|
||||
|
||||
Reference in New Issue
Block a user