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

Function Hi

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

Source from the content-addressed store, hash-verified

1334 milliseconds: 1,
1335 };
1336 function Hi(e) {
1337 let n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1;
1338 if (
1339 (function (e) {
1340 return t.hasOwnProperty(Vi, e);
1341 })(e)
1342 )
1343 return { part: e, step: n };
1344 switch (e) {
1345 case "day":
1346 case "dayofyear":
1347 return { part: "date", step: n };
1348 case "quarter":
1349 return { part: "month", step: 3 * n };
1350 case "week":
1351 return { part: "date", step: 7 * n };
1352 }
1353 }
1354 function Gi(e) {
1355 return !!e?.field && void 0 !== e.equal;
1356 }

Callers 2

BiFunction · 0.70
zcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected