mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Documented Cache
This commit is contained in:
@@ -22,7 +22,7 @@ class Cache extends Array {
|
||||
}
|
||||
|
||||
getAll(key, value) {
|
||||
var found = [];
|
||||
var found = new Cache(this.discrim);
|
||||
this.forEach((val, index, array) => {
|
||||
if (val.hasOwnProperty(key) && val[key] == value) {
|
||||
found.push(val);
|
||||
|
||||
Reference in New Issue
Block a user