encode() function
Encode parameters for use in a querystring.
Signature:
export declare function encode(obj: any, options?: IStringifyOptions): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| obj | any | |
| options | IStringifyOptions | Options to serialize the parameters. |
Returns:
string
A valid querystring.
Remarks
This is a wrapper of qs.stringify from the qs library.
See the qs package for more info.