siegel
Version:
Web application development ecosystem
1 lines • 258 B
JavaScript
import e from"../../../common/is/nullable/index.js";function t(t,n,o){e(o)?t.delete(n):t.set(n,o)}export default function(e,n){let{search:o}=location,r=new URLSearchParams(o);return"string"==typeof e?t(r,e,n):Object.entries(e).forEach(([e,n])=>{t(r,e,n)}),r}