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