UNPKG

@qntm-code/utils

Version:

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

7 lines (6 loc) 137 B
/** * Calculates the sum of the given values. */ export function sum(values) { return values.reduce((acc, val) => acc + val, 0); }