mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 05:00:48 +00: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:
parent
db7dca65b2
commit
afc4c93119
2 changed files with 4 additions and 4 deletions
|
|
@ -59,8 +59,8 @@ var Cache = (function (_Array) {
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
Cache.prototype.has = function has(object) {
|
Cache.prototype.has = function has(key, value) {
|
||||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
return !!this.get(key, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
Cache.prototype.getAll = function getAll(key, value) {
|
Cache.prototype.getAll = function getAll(key, value) {
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ export default class Cache extends Array {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
has(object) {
|
has(key, value) {
|
||||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
return !!this.get(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAll(key, value) {
|
getAll(key, value) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue