We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4da96c0 + 975c13a commit 1df992cCopy full SHA for 1df992c
index.js
@@ -66,7 +66,7 @@ module.exports = function kindOf(val) {
66
};
67
68
function ctorName(val) {
69
- return val.constructor ? val.constructor.name : null;
+ return val.constructor && typeof val.constructor === 'function' ? val.constructor.name : null;
70
}
71
72
function isArray(val) {
0 commit comments