diff --git a/src/utils/kindOf.js b/src/utils/kindOf.js index c5395a1df6..571b1caf06 100644 --- a/src/utils/kindOf.js +++ b/src/utils/kindOf.js @@ -38,7 +38,11 @@ export function kindOf(val) { } // other - return type.slice(8, -1).toLowerCase().replace(/\s/g, '') + return Object.prototype.toString + .call(val) + .slice(8, -1) + .toLowerCase() + .replace(/\s/g, '') } function ctorName(val) {