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:
SpaceEEC
2018-05-19 08:50:39 +02:00
parent 25b654d494
commit 56a9d1ba3c

View File

@@ -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;