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

x/ayonli_jsext/math/index.ts>product

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

Returns a the product value multiplied by the given values.

Examples

Example 1

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

console.log(product(1, 2, 3)); // 6
console.log(product(1, 2, 3, 4, 5)); // 120

Parameters

...values: number[]

Returns

number