Skip to content

Commit

Permalink
Apply kindOf fix from #4160
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Sep 14, 2021
1 parent 97a7798 commit cf2f265
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/kindOf.js
Expand Up @@ -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) {
Expand Down

0 comments on commit cf2f265

Please sign in to comment.