mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs(Collection): fix findKey jsdoc (#3204)
This commit is contained in:
parent
923c945b4b
commit
3cd224dc76
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue