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

Function So

resources/vega.min.js:2957–2994  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

2955 return arguments.length ? (Mo = Co(t)) : Mo;
2956 }
2957 function So(t, e, n) {
2958 A((n = n || {})) || s(`Invalid time multi-format specifier: ${n}`);
2959 const r = e(Jn),
2960 i = e(Xn),
2961 o = e(Vn),
2962 a = e(Hn),
2963 u = e(Wn),
2964 l = e(In),
2965 c = e(jn),
2966 f = e(Pn),
2967 h = t(n[Zn] || ".%L"),
2968 d = t(n[Jn] || ":%S"),
2969 p = t(n[Xn] || "%I:%M"),
2970 g = t(n[Vn] || "%I %p"),
2971 m = t(n[Hn] || n[Yn] || "%a %d"),
2972 y = t(n[Wn] || "%b %d"),
2973 v = t(n[In] || "%B"),
2974 _ = t(n[jn] || "%B"),
2975 x = t(n[Pn] || "%Y");
2976 return (t) =>
2977 (r(t) < t
2978 ? h
2979 : i(t) < t
2980 ? d
2981 : o(t) < t
2982 ? p
2983 : a(t) < t
2984 ? g
2985 : l(t) < t
2986 ? u(t) < t
2987 ? m
2988 : y
2989 : f(t) < t
2990 ? c(t) < t
2991 ? v
2992 : _
2993 : x)(t);
2994 }
2995 function $o(t) {
2996 const e = ko(t.format),
2997 n = ko(t.utcFormat);

Callers 1

$oFunction · 0.70

Calls 12

eFunction · 0.85
AFunction · 0.70
sFunction · 0.70
tFunction · 0.70
rFunction · 0.70
iFunction · 0.70
oFunction · 0.70
aFunction · 0.70
lFunction · 0.70
uFunction · 0.70
fFunction · 0.70
cFunction · 0.70

Tested by

no test coverage detected