Method Function.getBody
Get the body section of a function
-
Syntax
String Function.getBody()
Returns the body section of a function as a string - Return value The body of the function
-
Examples
- To get the body of the function
f(){alert('hello world');}; // Output 'alert('Hello world');' f.getBody();
- To get the body of the function
- Related Function.getArguments Function.getName
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
