From 56a9d1ba3c09882c8efdbf1d08ae2b5249c03476 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sat, 19 May 2018 08:50:39 +0200 Subject: [PATCH] docs(Collection): make findKey method show up in docs Solved by moving the eslint-enable line below the method header. --- src/util/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Collection.js b/src/util/Collection.js index 7eb66a905..06f54f59c 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -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;