mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
953 B
953 B
Home > kibana-plugin-plugins-expressions-public > 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>> | [];