2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Merge pull request #1156 from clarkdo/master

refactor: !isArray(obj) is always true
This commit is contained in:
Nick Uraltsev
2017-11-01 09:38:39 -07:00
committed by GitHub
+1 -1
View File
@@ -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];
}