Skip to main content

sum

Calculates the sum of numbers.

  • import the method
import { sum } from "nodelpers";
  • params
args: number[];
  • usage
sum(); // 0
sum(1, 2, 3, 4); // 10