Skip to content

Commit

Permalink
doc#toString helper
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Nov 17, 2011
1 parent 2c3ae79 commit 6325bfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/document.js
Expand Up @@ -921,6 +921,7 @@ Document.prototype.toJSON = function () {
* @api public
*/

Document.prototype.toString =
Document.prototype.inspect = function () {
return inspect(this.toObject());
};
Expand Down

0 comments on commit 6325bfe

Please sign in to comment.