Espruino/tests/test_number_infinity.js
2014-02-14 08:29:28 +00:00

5 lines
111 B
JavaScript

var a = Number.POSITIVE_INFINITY === Infinity;
var b = Number.NEGATIVE_INFINITY === -Infinity;
result = a&&b;