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
Related Contents:
- Javascript function executed in this pattern “xyz()()” throws error?
- How do JavaScript closures work?
- What is the scope of variables in JavaScript?
- What does the exclamation mark do before the function?
- What is the difference between call and apply?
- How to define method in javascript on Array.prototype and Object.prototype so that it doesn’t appear in for in loop
- Why use named function expressions?
- How does this object method definition work without the “function” keyword?
- Pass a JavaScript function as parameter
- How can I call PHP functions by JavaScript?
- Is there a better way to do optional function parameters in JavaScript? [duplicate]
- JavaScript function aliasing doesn’t seem to work
- Function declarations inside if/else statements?
- How can I create an Asynchronous function in Javascript?
- jQuery’s .click – pass parameters to user function
- Calling a JavaScript function returned from an Ajax response
- Function in JavaScript that can be called only once
- Javascript call() & apply() vs bind()?
- Is there a way to create a function from a string with javascript?
- How can I create every combination possible for the contents of two arrays?
- Cannot read property ‘addEventListener’ of null
- How to define custom sort function in javascript?
- In Javascript/jQuery what does (e) mean?
- Javascript Array of Functions
- how do I compare 2 functions in javascript
- $http.get(…).success is not a function
- What happens when JavaScript variable name and function name is the same?
- How to make chainable function in JavaScript?
- Why doesn’t console.log work when passed as a parameter to forEach?
- js function to get filename from url
- Strange JavaScript idiom – what does “/xyz/.test(function(){xyz;})” do?
- Javascript: Creating Functions in a For Loop
- Where should functions in function components go?
- Can you write nested functions in JavaScript?
- Can you alter a Javascript function after declaring it?
- Return value from nested function in Javascript [duplicate]
- functions inside or outside jquery document ready
- Get the weekday from a Date object or date string using JavaScript
- Set type for function parameters?
- Calling a Function defined inside another function in Javascript
- How does the location of a script tag in a page affect a JavaScript function that is defined in it?
- The reason to use JS .call() method?
- How to simplify a decimal into the smallest possible fraction?
- Function and Object Javascript
- Why can’t I set a JavaScript function’s name property?
- javascript – document.write error?
- How does the (function() {})() construct work and why do people use it?
- How do I call a function inside of another function?
- Pass only the second argument in javascript
- Why can’t I use a Javascript function before its definition inside a try block?