initialParams.js 514 B

123456789101112131415161718192021
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = function (fn) {
  6. return function () /*...args, callback*/{
  7. var args = (0, _slice2.default)(arguments);
  8. var callback = args.pop();
  9. fn.call(this, args, callback);
  10. };
  11. };
  12. var _slice = require('./slice');
  13. var _slice2 = _interopRequireDefault(_slice);
  14. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15. module.exports = exports['default'];