var bigNumber = Number.MAX_VALUE * 10if (bigNumber == Number.POSITIVE_INFINITY){ firstFunction()}else{ secondFunction()}