test-action-debian-package/node_modules/ramda/src/product.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

28 lines
511 B
JavaScript

var multiply =
/*#__PURE__*/
require("./multiply");
var reduce =
/*#__PURE__*/
require("./reduce");
/**
* Multiplies together all the elements of a list.
*
* @func
* @memberOf R
* @since v0.1.0
* @category Math
* @sig [Number] -> Number
* @param {Array} list An array of numbers
* @return {Number} The product of all the numbers in the list.
* @see R.reduce
* @example
*
* R.product([2,4,6,8,100,1]); //=> 38400
*/
var product =
/*#__PURE__*/
reduce(multiply, 1);
module.exports = product;