Feel free to use `Math.min()` here.