product
Version:
Curried calculation of the product of multiplying multiplicand and multiplier.
63 lines (40 loc) • 1.67 kB
Markdown
# product
> Curried calculation of the product of multiplying multiplicand and multiplier.
[](https://travis-ci.org/wilmoore/product.js) [](https://codeclimate.com/github/wilmoore/product.js) [](https://github.com/feross/standard)
```shell
npm install product --save
```
###### npm stats
[](https://www.npmjs.org/package/product) [](https://www.npmjs.org/package/product) [](https://gemnasium.com/wilmoore/product.js)
## Examples
###### require
```js
var product = require('product')
```
###### full application
```js
product(10, 2)
//=> 20
```
###### partial application
```js
var tenTimes = product(10)
tenTimes(2)
//=> 20
```
###### functor
```js
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
[](https://github.com/wilmoore/product.js/blob/master/license)