Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

pitermarx/toSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toSource

Naive implementation of Object.toSource.

Attention! Cyclical references are not checked!

Supports node/CommonJS, AMD and global this object (browser)

Example CommonJS

// 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}"

Build Status Coverage Status

About

naive implementation of Object.toSource

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published