(x)
| 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); |