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