product
v1.2.2
Published
Curried calculation of the product of multiplying multiplicand and multiplier.
Downloads
123
Maintainers
Readme
product
Curried calculation of the product of multiplying multiplicand and multiplier.
npm install product --savenpm stats
Examples
require
var product = require('product')full application
product(10, 2)
//=> 20partial application
var tenTimes = product(10)
tenTimes(2)
//=> 20functor
var tenTimes = product(10)
var multipliers = [1, 2, 3, 4, 5]
multipliers.map(tenTimes)
//=> [ 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 multiplyingmultiplicantandmultiplier.
