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 e9dc0d9 commit 96e6d50Copy full SHA for 96e6d50
index.js
@@ -135,6 +135,8 @@ function $asBoolean (bool) {
135
function $asString (str) {
136
if (str instanceof Date) {
137
return '"' + str.toISOString() + '"'
138
+ } else if (str === null) {
139
+ return '""'
140
} else if (str instanceof RegExp) {
141
str = str.source
142
} else if (typeof str !== 'string') {
0 commit comments