From 3cd224dc76568894cd407f75b6c794550164192e Mon Sep 17 00:00:00 2001 From: izexi <43889168+izexi@users.noreply.github.com> Date: Sun, 14 Apr 2019 14:49:32 +0100 Subject: [PATCH] docs(Collection): fix findKey jsdoc (#3204) --- 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 1b085a110..612b67c7d 100644 --- a/src/util/Collection.js +++ b/src/util/Collection.js @@ -223,8 +223,8 @@ class Collection extends Map { * @example * collection.findKey(val => val.username === 'Bob'); */ - /* eslint-enable max-len */ findKey(propOrFn, value) { + /* eslint-enable max-len */ if (typeof propOrFn === 'string') { if (typeof value === 'undefined') throw new Error('Value must be specified.'); for (const [key, val] of this) {