Created
September 12, 2016 18:24
-
-
Save courajs/e750239137ba6dfcd6290e25e80fbebd to your computer and use it in GitHub Desktop.
Some evil...
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.prototype.bodyString = function bodyString(){ | |
var s = this.toString(); | |
return s.substring(s.indexOf('\n'), s.lastIndexOf('\n')); | |
} | |
console.log(function(){/* | |
hey | |
indented | |
\n\\\///* $pecial ch&rs | |
*/}.bodyString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment