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

Function In

resources/vega-lite.min.js:1022–1033  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

1020 : n;
1021 }
1022 function In(e, t) {
1023 const n = e.value,
1024 i = t.value;
1025 if (null == n || null === i) return { explicit: e.explicit, value: null };
1026 if (($n(n) || wn(n)) && ($n(i) || wn(i)))
1027 return { explicit: e.explicit, value: Wn(n, i) };
1028 if ($n(n) || wn(n)) return { explicit: e.explicit, value: n };
1029 if ($n(i) || wn(i)) return { explicit: e.explicit, value: i };
1030 if (!($n(n) || wn(n) || $n(i) || wn(i)))
1031 return { explicit: e.explicit, value: Un(n, i) };
1032 throw new Error("It should never reach here");
1033 }
1034 function Bn(e) {
1035 return `Invalid specification ${Q(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`;
1036 }

Callers 2

udFunction · 0.70
SpFunction · 0.70

Calls 4

$nFunction · 0.85
WnFunction · 0.85
UnFunction · 0.85
wnFunction · 0.70

Tested by

no test coverage detected