MCPcopy
hub / github.com/docsifyjs/docsify / stringifyQuery

Function stringifyQuery

src/core/router/util.js:25–41  ·  view source on GitHub ↗
(obj, ignores = [])

Source from the content-addressed store, hash-verified

23}
24
25export function stringifyQuery(obj, ignores = []) {
26 const qs = [];
27
28 for (const key in obj) {
29 if (ignores.indexOf(key) > -1) {
30 continue;
31 }
32
33 qs.push(
34 obj[key]
35 ? `${encode(key)}=${encode(obj[key])}`.toLowerCase()
36 : encode(key)
37 );
38 }
39
40 return qs.length ? `?${qs.join('&')}` : '';
41}
42
43export const isAbsolutePath = cached(path => {
44 return /(:|(\/{2}))/g.test(path);

Callers 3

_fetchMethod · 0.90
_fetchCoverMethod · 0.90
toURLMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…