diff --git a/src/util/Collection.js b/src/util/Collection.js index 1b085a110dd3..612b67c7df3b 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) {