Don't do type-safe comparison on null

Resolve #537.
master
Hyunje Jun 8 years ago
parent ce7146121f
commit 898928b686

@ -8,7 +8,7 @@ var toInt = exports.toInt = function (x) {
};
var clone = exports.clone = function (obj) {
if (obj === null) {
if (!obj) {
return null;
} else if (obj.constructor === Array) {
return obj.map(clone);

Loading…
Cancel
Save