Last active
December 4, 2018 16:29
-
-
Save johnmurch/58fc9072960cfd29e4e93d7a60d706e9 to your computer and use it in GitHub Desktop.
Making Logging Great Again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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