diff options
Diffstat (limited to 'node_modules/async/internal/once.js')
-rw-r--r-- | node_modules/async/internal/once.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/async/internal/once.js b/node_modules/async/internal/once.js new file mode 100644 index 000000000..a0e46cdf6 --- /dev/null +++ b/node_modules/async/internal/once.js @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = once; +function once(fn) { + return function () { + if (fn === null) return; + var callFn = fn; + fn = null; + callFn.apply(this, arguments); + }; +} +module.exports = exports['default'];
\ No newline at end of file |