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

Function Bi

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

Source from the content-addressed store, hash-verified

1306 );
1307 }
1308 function Bi(e) {
1309 let t =
1310 arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : (e) => e;
1311 const n = Ii(e),
1312 i = Li(n.unit);
1313 if (i && "day" !== i) {
1314 const e = {
1315 year: 2001,
1316 month: 1,
1317 date: 1,
1318 hours: 0,
1319 minutes: 0,
1320 seconds: 0,
1321 milliseconds: 0,
1322 },
1323 { step: r, part: o } = Hi(i, n.step);
1324 return `${t(Pi({ ...e, [o]: +e[o] + r }))} - ${t(Pi(e))}`;
1325 }
1326 }
1327 const Vi = {
1328 year: 1,
1329 month: 1,

Callers 2

vega-lite.min.jsFile · 0.70
SmFunction · 0.70

Calls 5

IiFunction · 0.70
LiFunction · 0.70
HiFunction · 0.70
tFunction · 0.70
PiFunction · 0.70

Tested by

no test coverage detected