Created
June 28, 2017 00:45
-
-
Save trevor-atlas/6119d6dc16e854cbdb30a58c41123754 to your computer and use it in GitHub Desktop.
An easier to use console.log
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
const tag = (tag, param) => { | |
console.log(tag, param); | |
return param; | |
}; | |
const foobar = tag('foobar', tag('foo', 100 * tag('bar', 500))); | |
console.log('foobar is: ', foobar); | |
//>> bar 500 | |
//>> foo 50000 | |
//>> foobar 50000 | |
//>> foobar is: 50000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment