Test case name | Result |
---|---|
Number.isInteger() positive | |
typeof positive | |
Number.isInteger() negative | |
typeof negative |
Test name | Executions per second |
---|---|
Number.isInteger() positive | 169440592.0 Ops/sec |
typeof positive | 210013104.0 Ops/sec |
Number.isInteger() negative | 175134800.0 Ops/sec |
typeof negative | 193133504.0 Ops/sec |