mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs(Collection): make findKey method show up in docs
Solved by moving the eslint-enable line below the method header.
This commit is contained in:
parent
25b654d494
commit
56a9d1ba3c
1 changed files with 1 additions and 1 deletions
|
|
@ -185,8 +185,8 @@ class Collection extends Map {
|
|||
* @returns {*}
|
||||
* @example collection.findKey(user => user.username === 'Bob');
|
||||
*/
|
||||
/* eslint-enable max-len */
|
||||
findKey(fn, thisArg) {
|
||||
/* eslint-enable max-len */
|
||||
if (typeof thisArg !== 'undefined') fn = fn.bind(thisArg);
|
||||
for (const [key, val] of this) {
|
||||
if (fn(val, key, this)) return key;
|
||||
|
|
|
|||
Loading…
Reference in a new issue