Skip to content

Commit

Permalink
Don't do type-safe comparison on null
Browse files Browse the repository at this point in the history
Resolve #537.
  • Loading branch information
Hyunje Jun committed Oct 18, 2016
1 parent ce71461 commit 898928b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/lib/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 898928b

Please sign in to comment.