Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
view-container / dist / utils / once.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @flow
// Helper to call a given function, only once
exports.default = (cb) => {
    let called = false;
    return () => {
        if (!called) {
            called = true;
            cb();
        }
    };
};
//# sourceMappingURL=once.js.map