mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
953 B
953 B
Home > kibana-plugin-plugins-expressions-server > ExpressionAstExpressionBuilder > findFunction
ExpressionAstExpressionBuilder.findFunction property
Recursively searches expression for all ocurrences of the function, including in subexpressions.
Useful when performing migrations on a specific function, as you can iterate over the array of references and update all functions at once.
Signature:
findFunction: <FnDef extends AnyExpressionFunctionDefinition = AnyExpressionFunctionDefinition>(fnName: InferFunctionDefinition<FnDef>['name']) => Array<ExpressionAstFunctionBuilder<FnDef>> | [];