mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +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
|
// Force an array if not already something iterable
|
||||||
if (typeof obj !== 'object' && !isArray(obj)) {
|
if (typeof obj !== 'object') {
|
||||||
/*eslint no-param-reassign:0*/
|
/*eslint no-param-reassign:0*/
|
||||||
obj = [obj];
|
obj = [obj];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user