mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 12:33:38 +08:00
6 lines
264 B
TypeScript
6 lines
264 B
TypeScript
import { add, remove, set } from 'url-params';
|
|
|
|
const url1 = add('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 4);
|
|
const url2 = remove('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 3);
|
|
const url3 = set('http://www.example.com/?foo=2+3+6&baz=6', 'foo', 3);
|