Naive implementation of Object.toSource.
Supports node/CommonJS, AMD and global this object (browser)
// require
var toSource = require('./toSource');
// (optional) add it to the Object prototype
Object.prototype.toSource = function(){ return toSource(this); };
var obj = {a:1,b:false};
obj.toSource();
// -> "{a:1,b:false}"