JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
Edited by dazarobbo: 1/29/2013 6:44:42 AM
6

Retrieve function body as string

[quote]Object.defineProperty(Function.prototype, "Source", { get: function(){ return /{([\s\S]+)}/.exec(this.toString())[1]; } });[/quote]Magic. I seem to have posted this in the wrong place...

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
You are not allowed to view this content.
;
preload icon
preload icon
preload icon