Skip to content

Commit cf2f265

Browse files
authored
Apply kindOf fix from #4160
1 parent 97a7798 commit cf2f265

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/kindOf.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ export function kindOf(val) {
3838
}
3939

4040
// other
41-
return type.slice(8, -1).toLowerCase().replace(/\s/g, '')
41+
return Object.prototype.toString
42+
.call(val)
43+
.slice(8, -1)
44+
.toLowerCase()
45+
.replace(/\s/g, '')
4246
}
4347

4448
function ctorName(val) {

0 commit comments

Comments
 (0)