2017-05-03 15:35:00 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
value: true
|
|
|
|
});
|
|
|
|
|
|
|
|
exports.default = function (fn) {
|
2017-05-24 15:10:37 +02:00
|
|
|
return function () /*...args, callback*/{
|
|
|
|
var args = (0, _slice2.default)(arguments);
|
2017-05-03 15:35:00 +02:00
|
|
|
var callback = args.pop();
|
|
|
|
fn.call(this, args, callback);
|
2017-05-24 15:10:37 +02:00
|
|
|
};
|
2017-05-03 15:35:00 +02:00
|
|
|
};
|
|
|
|
|
2017-05-24 15:10:37 +02:00
|
|
|
var _slice = require('./slice');
|
2017-05-03 15:35:00 +02:00
|
|
|
|
2017-05-24 15:10:37 +02:00
|
|
|
var _slice2 = _interopRequireDefault(_slice);
|
2017-05-03 15:35:00 +02:00
|
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
module.exports = exports['default'];
|