Test case name | Result |
---|---|
Array.some | |
Array.filter with pop() | |
Array.indexOf | |
Array.includes | |
Array.find |
Test name | Executions per second |
---|---|
Array.some | 345571.9 Ops/sec |
Array.filter with pop() | 41674.4 Ops/sec |
Array.indexOf | 1325608.5 Ops/sec |
Array.includes | 2828578.2 Ops/sec |
Array.find | 361053.1 Ops/sec |