Module: extractFunctionCalls

(require("extractFunctionCalls"))(value, testopt) → {Array.<Object>}

Extract all or some function calls from a string

Parameters:
Name Type Attributes Description
value string

The value to extract function calls from. Note that this will also extract nested function calls, you can use pos to discard those if they are not of interest.

test Object <optional>
Properties
Name Type Description
names string | RegExp | function | Array
args string | RegExp | function | Array
topLevel Boolean

If true, only return top-level functions

Source:
Returns:

Array of objects, one for each function call with {name, args, pos} keys

Type
Array.<Object>