MCPcopy Create free account
hub / github.com/alignoth/alignoth / Q

Function Q

resources/vega-lite.min.js:256–284  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

254 return e != e && t != t;
255 }
256 function Q(e) {
257 const t = [];
258 return (function e(n) {
259 if (
260 (n && n.toJSON && "function" == typeof n.toJSON && (n = n.toJSON()),
261 void 0 === n)
262 )
263 return;
264 if ("number" == typeof n) return isFinite(n) ? "" + n : "null";
265 if ("object" != typeof n) return JSON.stringify(n);
266 let i, r;
267 if (Array.isArray(n)) {
268 for (r = "[", i = 0; i < n.length; i++)
269 (i && (r += ","), (r += e(n[i]) || "null"));
270 return r + "]";
271 }
272 if (null === n) return "null";
273 if (t.includes(n))
274 throw new TypeError("Converting circular structure to JSON");
275 const o = t.push(n) - 1,
276 a = Object.keys(n).sort();
277 for (r = "", i = 0; i < a.length; i++) {
278 const t = a[i],
279 o = e(n[t]);
280 o && (r && (r += ","), (r += JSON.stringify(t) + ":" + o));
281 }
282 return (t.splice(o, 1), `{${r}}`);
283 })(e);
284 }
285 function J(e, n) {
286 return t.isObject(e) && t.hasOwnProperty(e, n) && void 0 !== e[n];
287 }

Callers 15

dFunction · 0.70
vega-lite.min.jsFile · 0.70
BnFunction · 0.70
siFunction · 0.70
diFunction · 0.70
piFunction · 0.70
viFunction · 0.70
_iFunction · 0.70
WiFunction · 0.70
nrFunction · 0.70
DoFunction · 0.70
zoFunction · 0.70

Calls 2

eFunction · 0.85
toJSONMethod · 0.80

Tested by

no test coverage detected