UNPKG

sententiaregum-flux-container

Version:

The flux implementation of the sententiaregum project based on facebook/flux

37 lines (32 loc) 908 B
/* * This file is part of the Sententiaregum project. * * (c) Maximilian Bosch <maximilian.bosch.27@gmail.com> * (c) Ben Bieler <benjaminbieler2014@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ 'use strict'; /** * Simple auto-curry utility. * * @returns {Function} A function which handles the auto currying. * @private This is part of the internal API and should not be used directly! */ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function () { var normalized = []; return function step() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (args.length === 0) { return normalized; } normalized = normalized.concat(args); return step; }; };