collectype

collectype v0.11.0


collectype / utils/pipe/pipeFunctions / parseArguments

Function: parseArguments()

parseArguments(argString): any[]

Defined in: utils/pipe/pipeFunctions.ts:77

Parses an argument string into an array of values (booleans, numbers, strings, dates, arrays, objects).

Parameters

argString

string

The argument string

Returns

any[]

Array of parsed arguments (any[])

Example

parseArguments('1, "foo", true, [1,2], {a:1}')
// [1, 'foo', true, [1,2], {a:1}]