This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/math/sumBy.js
T

14 lines
277 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function sumBy(items, getValue) {
let result = 0;
for (let i = 0; i < items.length; i++) {
result += getValue(items[i]);
}
return result;
}
exports.sumBy = sumBy;