UNPKG

@tinymce/beehive-flow

Version:

A CLI tool implementing the beehive flow git branching process

26 lines 918 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNotEqual = exports.isLte = exports.isGte = exports.chainN = exports.chain = exports.compareNative = void 0; const compareNative = (a, b) => { if (a < b) { return -1 /* Comparison.LT */; } else if (a === b) { return 0 /* Comparison.EQ */; } else { return 1 /* Comparison.GT */; } }; exports.compareNative = compareNative; const chain = (c1, c2) => c1 !== 0 /* Comparison.EQ */ ? c1 : c2; exports.chain = chain; const chainN = (...cs) => cs.reduce(exports.chain, 0 /* Comparison.EQ */); exports.chainN = chainN; const isGte = (c) => c !== -1 /* Comparison.LT */; exports.isGte = isGte; const isLte = (c) => c !== 1 /* Comparison.GT */; exports.isLte = isLte; const isNotEqual = (c) => c !== 0 /* Comparison.EQ */; exports.isNotEqual = isNotEqual; //# sourceMappingURL=Comparison.js.map