omitURIParams()function
omitURIParams(uri: ImmutableURL | URLString, ...keys: string[]): ImmutableURL
omitURIParams(uri: PossibleURI, ...keys: string[]): ImmutableURI
| Param | Type | |
|---|---|---|
uri | ImmutableURLURLString | required |
keys | string[] | required |
uri | PossibleURI | Values that can be converted to an ImmutableURI instance. required |
| Return | |
|---|---|
ImmutableURL | Object that describes a valid URL, e.g. example.com/path/to/resource |
ImmutableURI | Object that describes a valid URI, e.g. or example.com/path/to/resource |
Return a URI without one or more params (or same URI if no changes were made).