type-comparator
Version:
Useful comparator functions written on Typescript
16 lines • 572 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const else_chain_1 = require("./else-chain");
class ThenChain {
constructor(originalChain) {
this.originalChain = originalChain;
}
then(comparator) {
const mutations = this.originalChain['mutations'];
const ifMutataionDescriptor = mutations[mutations.length - 1];
ifMutataionDescriptor.comparator = comparator;
return new else_chain_1.ElseChain(this.originalChain);
}
}
exports.ThenChain = ThenChain;
//# sourceMappingURL=then-chain.js.map
;