Methods
isUrlSearchParams(value) → {Boolean}
Returns if a value is an URLSearchParams object.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is a URLSearchParams object
- Type
- Boolean
Example
if( isUrlSearchParams(val) ){
val.set('query', 'foobar');
}