Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
514 bytes
|
Rev | Line | |
---|
[6a3a178] | 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']; |
---|
Note:
See
TracBrowser
for help on using the repository browser.