| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| validateNumber(percentile, 'percentile'); | ||
| if (NumberIsNaN(percentile) || percentile <= 0 || percentile > 100) | ||
| throw new ERR_OUT_OF_RANGE('percentile', '> 0 && <= 100', percentile); | ||
| validateNumber(percentile, 'percentile', 1, 100); |
There was a problem hiding this comment.
I tried this approach before, but all the numbers between 0 and 1 are not allowed any more with this PR.
This(#45772 (comment)) is previous discussion.
Sorry, something went wrong.
There was a problem hiding this comment.
@deokjinkim Thank you for explaining the history. I'll close it.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
It has been modified so that Type and range can be checked only with validateNumber.
Below is a modified reference to a similar case.
Refs: #45770