mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user