ts-sum
A typescript package to get the sum of numbers
Usage
- Install as a dependency
npm install @baijanaththaru/ts-sum
- Use in your project
import { sum } from '@baijanaththaru/ts-sum';
const numbers = [10, 20, 30];
const numbersSum = sum(...numbers); // 60