mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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 {*}
|
||||
* @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;
|
||||
|
||||
Reference in New Issue
Block a user