Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Math.product

Math.product($listOfNumbers) -> number

Description

Calculates the product (multiplication) of all values.

Returns 1 if the list is empty.

Math.product([2, 2])
//= 4

Math.product([-10, 10, 0.5])
//= -50

See Also