2021-04-28 18:08:03 +02:00

18 lines
447 B
Plaintext

The types of the arguments to built-in functions are specified in the JavaScript language specifications. Calls to these functions should conform to the documented types, otherwise the result will most likely not be what was expected (e.g.: the call would always return ``++false++``).
== Noncompliant Code Example
----
const isTooSmall = Math.abs(x < 0.0042);
----
== Compliant Solution
----
const isTooSmall = Math.abs(x) < 0.0042;
----