Skip to content

Commit

Permalink
Fix an issue with copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jan 22, 2014
1 parent f74b890 commit 216d3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -386,7 +386,7 @@ exports.copy = function (obj) {
var copy = {};
for (var i in obj) {
if (typeof obj[i] === 'object') {
copy[i] = copy[i] ? exports.copy(obj[i]) : null;
copy[i] = obj[i] ? exports.copy(obj[i]) : null;
} else {
copy[i] = obj[i];
}
Expand Down

0 comments on commit 216d3d9

Please sign in to comment.