mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-14 07:06:17 +00:00
21 lines
514 B
JavaScript
21 lines
514 B
JavaScript
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
|
||
|
exports.default = function (fn) {
|
||
|
return function () /*...args, callback*/{
|
||
|
var args = (0, _slice2.default)(arguments);
|
||
|
var callback = args.pop();
|
||
|
fn.call(this, args, callback);
|
||
|
};
|
||
|
};
|
||
|
|
||
|
var _slice = require('./slice');
|
||
|
|
||
|
var _slice2 = _interopRequireDefault(_slice);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
module.exports = exports['default'];
|