Skip to content

Added extractFunctions option

Latest
Compare
Choose a tag to compare
@morulus morulus released this 09 Oct 14:53
extractFunctions

Type: boolean
Default: false

Stringifies inner code of functions.

var obj = {
    assets: function() { [foo, bar] }
}

var pretty = stringifyObject(obj, {
    extractFunctions: true
}
console.log(pretty);
/*
{
    assets: [foo, bar]
}
*/