MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / lastDefined

Function lastDefined

tests/loadtest/tools/dashboard/app.js:1341–1349  ·  view source on GitHub ↗
(series, key)

Source from the content-addressed store, hash-verified

1339}
1340
1341function lastDefined(series, key) {
1342 for (let index = series.length - 1; index >= 0; index -= 1) {
1343 const value = series[index][key];
1344 if (value !== null && value !== undefined) {
1345 return value;
1346 }
1347 }
1348 return null;
1349}
1350
1351function mean(values) {
1352 const actual = values.filter((value) => value !== null && value !== undefined);

Callers 1

normalizeCsvRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected