Format undefined array values as null

This commit is contained in:
Kevin Sawicki
2013-02-04 08:52:07 -08:00
parent f65e83fe2a
commit 84feaf369d
2 changed files with 5 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ module.exports =
cson += @stringifyBoolean(value)
else if _.isNumber(value)
cson += @stringifyNumber(value)
else if _.isNull(value)
else if _.isNull(value) or value is undefined
cson += @stringifyNull(value)
else if _.isArray(value)
cson += @stringifyArray(value, indentLevel + 2)