number.js 328 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.clamp = void 0;
  4. /**
  5. * Clamp number within the inclusive range within the lower and upper bounds.
  6. */
  7. function clamp(v, lower, upper) {
  8. return Math.max(lower, Math.min(v, upper));
  9. }
  10. exports.clamp = clamp;
  11. //# sourceMappingURL=number.js.map