Skip to content

Instantly share code, notes, and snippets.

@johnmurch
Last active December 4, 2018 16:29
Show Gist options
  • Save johnmurch/58fc9072960cfd29e4e93d7a60d706e9 to your computer and use it in GitHub Desktop.
Save johnmurch/58fc9072960cfd29e4e93d7a60d706e9 to your computer and use it in GitHub Desktop.
Making Logging Great Again
function _log(blob){
console.log(blob)
}
function _jlog(blob){
console.log(JSON.stringify(blob,null,4))
}
/*
* Example
* const name = { firstname: "John", lastname: "Murch" }
*
* _log(name)
* { firstname: 'John', lastname: 'Murch' }
*
*
* _jlog(name)
* {
* "firstname": "John",
* "lastname": "Murch"
* }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment