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

Function at

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

Source from the content-addressed store, hash-verified

281 return t;
282 }
283 function at(t, e) {
284 let n,
285 r,
286 i,
287 o,
288 a = 0;
289 if (t && (n = t.length))
290 if (null == e) {
291 for (r = t[a]; a < n && (null == r || r != r); r = t[++a]);
292 for (i = o = r; a < n; ++a)
293 ((r = t[a]), null != r && (r < i && (i = r), r > o && (o = r)));
294 } else {
295 for (r = e(t[a]); a < n && (null == r || r != r); r = e(t[++a]));
296 for (i = o = r; a < n; ++a)
297 ((r = e(t[a])), null != r && (r < i && (i = r), r > o && (o = r)));
298 }
299 return [i, o];
300 }
301 function st(t, e) {
302 const n = t.length;
303 let r,

Callers 4

transformFunction · 0.70
_floorFunction · 0.70
sEFunction · 0.70
vega.min.jsFile · 0.70

Calls 1

eFunction · 0.85

Tested by

no test coverage detected