Test case name | Result |
---|---|
Object.hasOwnProperty | |
Object in | |
Array.indexOf | |
direct | |
Array includes | |
has |
Test name | Executions per second |
---|---|
Object.hasOwnProperty | 5246364.5 Ops/sec |
Object in | 4942895.5 Ops/sec |
Array.indexOf | 1045242.4 Ops/sec |
direct | 4953886.5 Ops/sec |
Array includes | 1029488.4 Ops/sec |
has | 3413079.0 Ops/sec |