var entire = derp.toString();
var body = entire.slice(entire.indexOf("{") + 1, entire.lastIndexOf("}"));
console.log(body); // "a(); b(); c();"
Please use the search, this is duplicate of this question
More Related Contents:
- Javascript function not working, what is wrong? [closed]
- How would I make a Timer which times things in 0.75 seconds Javascript?
- How to use variable instead of function name in JavaScript
- Javascript return in Function
- What is the difference between a function call and function reference?
- JavaScript check if variable exists (is defined/initialized)
- JavaScript variable number of arguments to function
- Is there a better way to do optional function parameters in JavaScript? [duplicate]
- How can I create an Asynchronous function in Javascript?
- Function in JavaScript that can be called only once
- Javascript “this” pointer within nested function
- Returning Chrome storage API value without function
- How does this object method definition work without the “function” keyword?
- Dynamic function name in javascript?
- Adding custom properties to a function
- Proper use of const for defining functions
- Javascript Image Url Verify
- Why doesn’t console.log work when passed as a parameter to forEach?
- Strange JavaScript idiom – what does “/xyz/.test(function(){xyz;})” do?
- functions inside or outside jquery document ready
- Where can I find javascript native functions source code? [duplicate]
- javascript named function expressions – scope accessibility [duplicate]
- What happens when JavaScript variable name and function name is the same?
- How to calculate an angle from points?
- Is it better to return `undefined` or `null` from a javascript function? [closed]
- Javascript: Extend a Function
- onClick Function “this” Returns Window Object
- How to sort numbers? [duplicate]
- Anagrams finder in javascript
- .indexOf function on an array not working in IE7/8 using JavaScript