mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 01:01:53 +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;
|
||||
};
|
||||
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue