mirror of
https://github.com/danbulant/discord.js
synced 2026-06-04 23:31:04 +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 {*}
|
* @returns {*}
|
||||||
* @example collection.findKey(user => user.username === 'Bob');
|
* @example collection.findKey(user => user.username === 'Bob');
|
||||||
*/
|
*/
|
||||||
/* eslint-enable max-len */
|
|
||||||
findKey(fn, thisArg) {
|
findKey(fn, thisArg) {
|
||||||
|
/* eslint-enable max-len */
|
||||||
if (typeof thisArg !== 'undefined') fn = fn.bind(thisArg);
|
if (typeof thisArg !== 'undefined') fn = fn.bind(thisArg);
|
||||||
for (const [key, val] of this) {
|
for (const [key, val] of this) {
|
||||||
if (fn(val, key, this)) return key;
|
if (fn(val, key, this)) return key;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue