mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
docs(Collection): fix findKey jsdoc (#3204)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user