model-layer
Version:
21 lines • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EqualStack {
constructor() {
this.list = [];
}
get(selfValue) {
const item = this.list.find((pair) => pair.self === selfValue);
if (item) {
return item.other;
}
}
add(selfValue, otherValue) {
this.list.push({
self: selfValue,
other: otherValue
});
}
}
exports.default = EqualStack;
//# sourceMappingURL=EqualStack.js.map