MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / typing

Function typing

example/tests/gm_xhr_test.js:65–74  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

63
64 // value type helper
65 const typing = (x) => {
66 let t = x === null ? "null" : typeof x;
67 if (!x) t = `<${t}>`;
68 if (t === "object") {
69 try {
70 return x[Symbol.toStringTag] || "object";
71 } catch (e) {}
72 }
73 return t;
74 };
75
76 const statusCode = (response) => {
77 return (+response.readyState + +response.status / 1000).toFixed(3);

Callers 1

resPrintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected