Skip to content

Commit

Permalink
docs(Collection): fix findKey jsdoc (#3204)
Browse files Browse the repository at this point in the history
  • Loading branch information
izexi authored and SpaceEEC committed Apr 14, 2019
1 parent 923c945 commit 3cd224d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3cd224d

Please sign in to comment.