UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

11 lines (10 loc) 248 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sum = void 0; /** * Calculates the sum of the given values. */ function sum(values) { return values.reduce((acc, val) => acc + val, 0); } exports.sum = sum;