Created
June 24, 2014 10:39
-
-
Save eirikb/bf72f7c2d6e5c0e8fef8 to your computer and use it in GitHub Desktop.
Dependencyhackjection
This file contains 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
var d={a:1,b:2},f=function(a,b){return a+b};f.apply(null,(''+f).match(/function[^(]*\(([^)]*)\)/)[1].split(/,\s*/).map(function(x){return d[x]})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment