Skip to content

Function: parseAsArrayOf() ​

ts
function parseAsArrayOf<T>(itemParser, separator?): Parser<T[]>;

Defined in: parser/parsers.ts:242

Splits the string on separator and reads each item with itemParser, dropping the items it does not accept. A separator inside a value is percent encoded, and an empty string reads as an empty array.

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterTypeDefault value
itemParserParser<T>undefined
separator?string','

Returns ​

Parser<T[]>

Released under the MIT License.