Neovictorian Paisley Menswear
Miss any of our Open RFC calls?Watch the recordings here! »

product

1.2.2 • Public • Published

product

Curried calculation of the product of multiplying multiplicand and multiplier.

Build Status Code Climate js-standard-style

npm install product --save
npm stats

npm NPM downloads Dependency Status

Examples

require
var product = require('product')
full application
product(10, 2)
//=> 20
partial application
var tenTimes = product(10)
tenTimes(2)
//=> 20
functor
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 multiplying multiplicant and multiplier.

License

GitHub license

Install

npm i product

DownloadsWeekly Downloads

17

Version

1.2.2

License

MIT

Last publish

Collaborators

  • avatar