mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed Cache.has function (#344)
* Fixed Cache.has function * Fixed Cache.has function * Fixed Cache.has function and ran grunt --dev
This commit is contained in:
committed by
abalabahaha
parent
db7dca65b2
commit
afc4c93119
@@ -59,8 +59,8 @@ var Cache = (function (_Array) {
|
||||
return null;
|
||||
};
|
||||
|
||||
Cache.prototype.has = function has(object) {
|
||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
||||
Cache.prototype.has = function has(key, value) {
|
||||
return !!this.get(key, value);
|
||||
};
|
||||
|
||||
Cache.prototype.getAll = function getAll(key, value) {
|
||||
|
||||
@@ -36,8 +36,8 @@ export default class Cache extends Array {
|
||||
return null;
|
||||
}
|
||||
|
||||
has(object) {
|
||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
||||
has(key, value) {
|
||||
return !!this.get(key, value);
|
||||
}
|
||||
|
||||
getAll(key, value) {
|
||||
|
||||
Reference in New Issue
Block a user