Loading homepage
Input: const p = new SearchParams("a=1&b=2&a=3"); p.set("a","x"); p.append("a","y"); p.toString(); Output: a=x&b=2&a=y
Input: p.delete("a","x"); p.sort(); p.toString(); Output: a=y&b=2
Implement the exported API in index.js or index.ts. The documented contract defines the scope of this exercise.