2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

refactor: !isArray(obj) is always true

This commit is contained in:
Clark Du
2017-11-01 15:47:58 +08:00
parent fbb5d4d0d1
commit 63548c00c0
+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];
}