| Current Path : /usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/math/ |
| Current File : //usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/math/sumBy.js |
'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;