/** * @module 1-liners/product * * @description * * Returns the product of all items of an `array`. * * @example * * const product = require('1-liners/product'); * * product([2, 3, 4]); // => 24 * product([]); // => 1 * */ "use strict"; exports.__esModule = true; exports["default"] = function (array) { return array.reduce(function (a, b) { return a * b; }, 1); }; module.exports = exports["default"];