Skip to content

Instantly share code, notes, and snippets.

@Indamix
Created Mar 28, 2012
Embed
What would you like to do?
get function code
function getCode(fn){
return fn.toString().replace(/^function.*?{|}$/g, '')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment