diff --git a/lib/model.js b/lib/model.js index 3a1ccef..cca7af7 100644 --- a/lib/model.js +++ b/lib/model.js @@ -113,7 +113,7 @@ function deepCopy (obj) { return obj; } - if (obj instanceof Array) { + if (util.isArray(obj)) { res = []; obj.forEach(function (o) { res.push(o); }); return res; diff --git a/package.json b/package.json index 4d92d6d..80a3d4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nedb", - "version": "0.7.8", + "version": "0.7.9", "author": { "name": "tldr.io", "email": "hello@tldr.io"