Function getMultipleQueryParams
- getMultipleQueryParams<T>(query, key, pred?): T[]
Parameters
- query: ParsedUrlQuery
- key: string
Optional
pred: ((s: string) => s is T)- (s): s is T
Returns s is T
Returns T[]
- getMultipleQueryParams(query, key, pred?): string[]
Parameters
- query: ParsedUrlQuery
- key: string
Optional
pred: ((s: string) => boolean)- (s): boolean
Returns boolean
Returns string[]
Returns an array of the values for the specified key in the query object. If
pred
specified, returns the values that meet it.返り値は、指定した
key
に対応するパラメータの値の配列。 もしpred
が指定されている場合は、その関数によって返り値の配列が filter される。Example
Param: pred
optional. the values that fit this predicate will be returned.