product
Curried calculation of the product of multiplying multiplicand and multiplier.
npm install product --save
npm stats
Examples
require
var product =
full application
//=> 20
partial application
var tenTimes = //=> 20
functor
var tenTimes = var multipliers = 1 2 3 4 5 multipliers//=> [ 10, 20, 30, 40, 50 ]
API
product(multiplicand, multiplier)
arguments
multiplicand: (Number)
Number to be multiplied by the multiplier.multiplier: (Number)
Number by which the multiplicand is to be multiplied.
returns
(Number)
The result of multiplyingmultiplicant
andmultiplier
.