moltres-utils
Version:
Utils for Moltres apps
28 lines (23 loc) • 878 B
JavaScript
require("core-js/modules/es6.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reduce = _interopRequireDefault(require("./reduce"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Alias for [reduce](#reduce) method
*
* @function
* @since v0.0.3
* @category data
* @param {Function} fn The iterator function. Receives three values, the accumulator, the current value from the collection and the key or index.
* @param {*} accumulator The accumulator value.
* @param {Array|string|Object|Promise} collection The collection to iterate over.
* @returns {*} The final, accumulated value.
*/
var reduceIndexed = _reduce.default;
var _default = reduceIndexed;
exports.default = _default;
//# sourceMappingURL=reduceIndexed.js.map
;