collectype / utils/pipe/pipeFunctions / parseMethodCall
parseMethodCall(
raw):ParsedPipeStep
Defined in: utils/pipe/pipeFunctions.ts:49
Parses a method call string into a ParsedPipeStep object.
string
The raw method call string
ParsedPipeStep object
Error if the expression is invalid
parseMethodCall('map(x => x * 2)');
// { methodName: 'map', args: ['x => x * 2'] }