Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 9 lines · 200 B · at 358de06

// After `n = max` the name n no longer means what the caller passed.const clamp = (n: number, max: number): number => {  if (n > max) {    n = max;  }  return n;};console.log(clamp(12, 10));