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

Function Ko

resources/vega.min.js:3162–3172  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

3160 ],
3161 Qo = ["boolean", "integer", "number", "date"];
3162 function Ko(t, e) {
3163 if (!t || !t.length) return "unknown";
3164 const n = t.length,
3165 r = Zo.length,
3166 i = Zo.map((t, e) => e + 1);
3167 for (let o, a, s = 0, u = 0; s < n; ++s)
3168 for (a = e ? t[s][e] : t[s], o = 0; o < r; ++o)
3169 if (i[o] && Vo(a) && !Zo[o](a) && ((i[o] = 0), ++u, u === Zo.length))
3170 return "string";
3171 return Qo[i.reduce((t, e) => (0 === t ? e : t), 0) - 1];
3172 }
3173 function ta(t, e) {
3174 return e.reduce((e, n) => ((e[n] = Ko(t, n)), e), {});
3175 }

Callers 1

taFunction · 0.70

Calls 2

VoFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected