Created
October 28, 2012 20:41
-
-
Save tobz-nz/3969836 to your computer and use it in GitHub Desktop.
chrome live console.log fix
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
| console.echo = function(input) { | |
| var output = JSON.parse(JSON.stringify(input)); | |
| console.log(output); | |
| } | |
| var asd = {'changed': false}; | |
| console.echo(asd); | |
| asd.changed = true; | |
| console.echo(asd); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment