MCPcopy Create free account
hub / github.com/breck7/scroll / queryObjectToQueryString

Method queryObjectToQueryString

external/.scrollLibs.js:23682–23688  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

23680 setValueOfElementWithClassHack(id, value) {}
23681 getElementById(id) {}
23682 queryObjectToQueryString(obj) {
23683 const params = new URLSearchParams()
23684 for (const [key, value] of Object.entries(obj)) {
23685 params.set(key, String(value))
23686 }
23687 return params.toString()
23688 }
23689 toPrettyDeepLink(particleCode, queryObject) {
23690 // todo: move things to a constant.
23691 const particleBreakSymbol = "~"

Callers 1

toPrettyDeepLinkMethod · 0.95

Calls 2

setMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected