mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +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
|
* @example
|
||||||
* collection.findKey(val => val.username === 'Bob');
|
* collection.findKey(val => val.username === 'Bob');
|
||||||
*/
|
*/
|
||||||
/* eslint-enable max-len */
|
|
||||||
findKey(propOrFn, value) {
|
findKey(propOrFn, value) {
|
||||||
|
/* eslint-enable max-len */
|
||||||
if (typeof propOrFn === 'string') {
|
if (typeof propOrFn === 'string') {
|
||||||
if (typeof value === 'undefined') throw new Error('Value must be specified.');
|
if (typeof value === 'undefined') throw new Error('Value must be specified.');
|
||||||
for (const [key, val] of this) {
|
for (const [key, val] of this) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue