2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Use native Array.isArray() in utils.js (#3836)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
C. Lewis
2021-12-23 10:45:44 -06:00
committed by GitHub
parent a8cd75a081
commit a76571abec
+1 -1
View File
@@ -13,7 +13,7 @@ var toString = Object.prototype.toString;
* @returns {boolean} True if value is an Array, otherwise false
*/
function isArray(val) {
return toString.call(val) === '[object Array]';
return Array.isArray(val);
}
/**