@rickosborne/rebound
Version:
Rick Osborne's utilities for working with bounded numbers
12 lines (11 loc) • 493 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
const effectiveRange = /* @__PURE__ */ __name((bounds) => {
const start = bounds.lower + (bounds.isLowerInc ? 0 : bounds.isInt ? 1 : Number.MIN_VALUE);
const end = bounds.upper - (bounds.isUpperInc ? 0 : bounds.isInt ? 1 : Number.MIN_VALUE);
return end - start;
}, "effectiveRange");
export {
effectiveRange
};
//# sourceMappingURL=effective-range.mjs.map