Front end of the Slack clone application.

once.js 312B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = once;
  6. function once(fn) {
  7. return function () {
  8. if (fn === null) return;
  9. var callFn = fn;
  10. fn = null;
  11. callFn.apply(this, arguments);
  12. };
  13. }
  14. module.exports = exports["default"];