collectype / utils/pipe/pipeFunctions / parsePipeExpression
parsePipeExpression(
expression):ParsedPipeStep[]
Defined in: utils/pipe/pipeFunctions.ts:30
Parses a pipe expression string into an array of parsed steps. Each step represents a method call with its arguments.
string
The pipe expression string
Array of parsed steps (ParsedPipeStep[])
parsePipeExpression('filter(x => x > 0) | map(x => x * 2)');
// [ { methodName: 'filter', args: ['x => x > 0'] }, { methodName: 'map', args: ['x => x * 2'] } ]