parent
ce7146121f
commit
898928b686
@ -8,7 +8,7 @@ var toInt = exports.toInt = function (x) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var clone = exports.clone = function (obj) {
|
var clone = exports.clone = function (obj) {
|
||||||
if (obj === null) {
|
if (!obj) {
|
||||||
return null;
|
return null;
|
||||||
} else if (obj.constructor === Array) {
|
} else if (obj.constructor === Array) {
|
||||||
return obj.map(clone);
|
return obj.map(clone);
|
||||||
|
Loading…
Reference in New Issue
Block a user