Skip to content

Commit b0e1c5b

Browse files
committedJul 28, 2018
fix(documentarray): use toObject() instead of cloning for inspect
Re: #6637
1 parent 88457b0 commit b0e1c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/types/documentarray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ MongooseDocumentArray.mixin = {
265265
*/
266266

267267
inspect: function() {
268-
return Array.prototype.slice.call(this);
268+
return this.toObject();
269269
},
270270

271271
/**

0 commit comments

Comments
 (0)
Please sign in to comment.