kibana/docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionastfunctionbuilder.getargument.md
2020-09-30 09:10:28 +02:00

13 lines
887 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [kibana-plugin-plugins-expressions-server](./kibana-plugin-plugins-expressions-server.md) &gt; [ExpressionAstFunctionBuilder](./kibana-plugin-plugins-expressions-server.expressionastfunctionbuilder.md) &gt; [getArgument](./kibana-plugin-plugins-expressions-server.expressionastfunctionbuilder.getargument.md)
## ExpressionAstFunctionBuilder.getArgument property
Retrieves an existing argument by name. Useful when you want to retrieve the current array of args and add something to it before calling `replaceArgument`<!-- -->. Any subexpression arguments will be returned as expression builder instances.
<b>Signature:</b>
```typescript
getArgument: <A extends FunctionArgName<FnDef>>(name: A) => Array<FunctionArgs<FnDef>[A] | ExpressionAstExpressionBuilder> | undefined;
```