Why is this an issue?
conform to the documented types as they are designed to work with specific data types. If the arguments passed to these functions do not match the
expected types, it can lead to type errors or unexpected behavior.
Additionally, passing the correct types of arguments to built-in functions can improve performance by reducing the need for type conversions and
const isTooSmall = Math.abs(x < 0.0042); // Noncompliant: 'Math.abs' takes a number as argument
Ensure that the arguments passed to built-in functions match the documented types. This is an important aspect of writing high-quality,
maintainable, and performant code. You can refer to the Mozilla Developer Network (MDN) documentation for the built-in functions. The documentation
typically includes information about the expected types of arguments, the return type of the function, and any other relevant details.
const isTooSmall = Math.abs(x) < 0.0042;