mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Use native Array.isArray() in utils.js (#3836)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ var toString = Object.prototype.toString;
|
|||||||
* @returns {boolean} True if value is an Array, otherwise false
|
* @returns {boolean} True if value is an Array, otherwise false
|
||||||
*/
|
*/
|
||||||
function isArray(val) {
|
function isArray(val) {
|
||||||
return toString.call(val) === '[object Array]';
|
return Array.isArray(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user