collectype / utils/pipe/pipeFunctions / splitArguments
splitArguments(
input):string[]
Defined in: utils/pipe/pipeFunctions.ts:92
Splits an argument string into individual argument tokens, respecting nesting and string literals.
string
The argument string
string[]
Array of argument tokens as strings
splitArguments('1, "foo,bar", [1,2], {a:1, b:2}')
// ['1', '"foo,bar"', '[1,2]', '{a:1, b:2}']