Skip to content

oxc/number-arg-out-of-range Correctness

This rule is turned on by default.

What it does

Checks whether the radix or precision arguments of number-related functions exceeds the limit.

Example

javascript
var x = 42;
var s_radix_64 = x.toString(64);
var s = x.toString(1);

References

Released under the MIT License.