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