We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b8ec9 commit cb2c846Copy full SHA for cb2c846
src/utils/kindOf.ts
@@ -30,7 +30,7 @@ export function miniKindOf(val: any): string {
30
}
31
32
// other
33
- return type.slice(8, -1).toLowerCase().replace(/\s/g, '')
+ return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, '')
34
35
36
function ctorName(val: any): string | null {
0 commit comments