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.
1 parent e7a3b32 commit 25400beCopy full SHA for 25400be
lib/types.js
@@ -90,7 +90,7 @@ module.exports.escape = function escape(str) {
90
}
91
92
module.exports.inferType = function inferType(x) {
93
- return x.type || (x instanceof Date
+ return (x && x.type) || (x instanceof Date
94
? 1184
95
: Array.isArray(x)
96
? inferType(x[0])
0 commit comments