Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Sum Utilities for Deno

GitMoji License: MIT Lines Of Code CodeQL

You can get this package by nest.land or deno.land.

Usage

This package exposes two Functions, sum and sumSync.

import sum, { sumSync } from "https://deno.land/x/sum/mod.ts";

console.log(await sum(45, "a")); // "45a"

async function somethingAsync() {
  console.log(await sum(2, 4, 5)); // 11
}

somethingAsync();

sum(34, 56).then((number) => console.log(number)); // 90

console.log(sumSync([2, 4, 5, 6])); // 17

License

This project is licensed under the MIT License.