Codiga has joined Datadog!

Read the Blog
Skip to main content

Function Call Argument AST JavaScript Object

The FunctionCallArgument object matches an argument in a function call. It is used in the FunctionCallArguments object.

The astType value for this node is argument.

Code Pattern

This AST element captures the arg1 or arg2 part of the following code:

myFunction(arg1, arg2);

Attributes

  • name (type AstString): name of the argument
  • value (type AstString): value of the argument (null is no value passed)

See also