Codiga has joined Datadog!

Read the Blog
Skip to main content

Function Call AST JavaScript Object

The FunctionCall object matches a JavaScript function call.

The astType value for this node is functioncall.

Code Pattern

This object captures the following code pattern.

myFunction(argument1, argument2);



const functionCall = ...

// Get the function name
if (functionCall.functionName && functionCall.functionName.value) {
const functionName = functionCall.functionName.value;

// Get the list of all the arguments names
if (functionCall.arguments && functionCall.arguments.values) {
const argumentsNames = functionCall.arguments.values.filter(a => && =>;