UNPKG

tlojs

Version:

The Last One - The last npm package you'll need to install

17 lines (16 loc) 456 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mean = void 0; var Mean = /** @class */ (function () { function Mean() { } Mean.prototype.execute = function (cells) { var results = 0; cells .select(function (x) { return x.value; }) .map(function (x) { return results += x; }); return results / cells.length; }; return Mean; }()); exports.Mean = Mean;