Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/math/index.ts>sum

A JavaScript extension package for building strong and modern applications.
Latest
function sum
import { sum } from "https://deno.land/x/ayonli_jsext@v0.9.72/math/index.ts";

Returns the sum value of the given values.

Examples

Example 1

import { sum } from "@ayonli/jsext/math";

console.log(sum(1, 2, 3)); // 6
console.log(sum(1, 2, 3, 4, 5)); // 15

Parameters

...values: number[]

Returns

number