maycur-business
Version:
maycur business react components of web
16 lines (13 loc) • 416 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = reduce;
// Copyright 2015-2018 FormBucket LLC
// reduce an array to a value
function reduce(arr, func) {
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
rest[_key - 2] = arguments[_key];
}
return arr.reduce.apply(arr, [func].concat(rest));
}