Repository
Current version released
3 years ago
Versions
Sum Utilities for Deno
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.