Skip to content

Commit

Permalink
Merge pull request #1156 from clarkdo/master
Browse files Browse the repository at this point in the history
refactor: !isArray(obj) is always true
  • Loading branch information
nickuraltsev committed Nov 1, 2017
2 parents fbb5d4d + 63548c0 commit 1ee5494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function forEach(obj, fn) {
}

// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray(obj)) {
if (typeof obj !== 'object') {
/*eslint no-param-reassign:0*/
obj = [obj];
}
Expand Down

0 comments on commit 1ee5494

Please sign in to comment.