delete(key: string): void
Parameter | Type | Description |
key | string | Key. |
Type | Description |
void | No data returned. |
import url from 'pts/url';export default function() {const params = new url.URLSearchParams('key1=value1&key2=value2');params.delete('key2');console.log(params.toString()); // key1=value1}