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:
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user