mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(Collection): fix findKey jsdoc (#3204)
This commit is contained in:
@@ -223,8 +223,8 @@ class Collection extends Map {
|
||||
* @example
|
||||
* collection.findKey(val => val.username === 'Bob');
|
||||
*/
|
||||
/* eslint-enable max-len */
|
||||
findKey(propOrFn, value) {
|
||||
/* eslint-enable max-len */
|
||||
if (typeof propOrFn === 'string') {
|
||||
if (typeof value === 'undefined') throw new Error('Value must be specified.');
|
||||
for (const [key, val] of this) {
|
||||
|
||||
Reference in New Issue
Block a user