"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OncePer = void 0;
class OncePer {
    constructor() {
        this.storage = new Map();
    }
    once(t, u) {
        const entry = this.storage.get(t);
        if (!entry) {
            this.storage.set(t, [u]);
            return true;
        }
        if (!entry.includes(u)) {
            entry.push(u);
            return true;
        }
        return false;
    }
}
exports.OncePer = OncePer;
//# sourceMappingURL=OncePer.js.map