Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / math / sum.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var reduceArrayFlipped_1 = require("../loop/flipped/reduceArrayFlipped");
var add_1 = require("./add");
/**
 * Adds together all the elements of a list.
 * @since 5.0.0-beta.5
 * @memberOf conditional
 *
 * @param {Array} list An array of numbers
 * @return {Number} The sum of all the numbers in the list.
 *
 * @func
 * @fork v0.1.0
 * @category Math
 * @sig [Number] -> Number
 *
 * {@link https://github.com/ramda/ramda/blob/master/src/sum.js ramda-sum}
 * {@link https://github.com/lodash/lodash/blob/master/sum.js lodash-sum}
 * @see {@link lodash-sum}
 * @see {@link ramda-sum}
 * @see loop/reduce
 *
 * @example
 *
 *      sum([2,4,6,8,100,1])
 *      //=> 121
 *
 */
exports.default = reduceArrayFlipped_1.default(add_1.default, 0);
//# sourceMappingURL=sum.js.map