Test case name | Result |
---|---|
Object.prototype.hasOwnProperty | |
Object in | |
Array.indexOf | |
direct | |
Array includes | |
Set has |
Test name | Executions per second |
---|---|
Object.prototype.hasOwnProperty | 4189001.0 Ops/sec |
Object in | 5519183.0 Ops/sec |
Array.indexOf | 1088871.1 Ops/sec |
direct | 5581476.0 Ops/sec |
Array includes | 1091575.6 Ops/sec |
Set has | 6293361.0 Ops/sec |