Test case name | Result |
---|---|
slice | |
spread operator | |
push apply into empty array | |
Array.from | |
Object.values | |
Array.concat |
Test name | Executions per second |
---|---|
slice | 994166.6 Ops/sec |
spread operator | 917084.3 Ops/sec |
push apply into empty array | 2737675.2 Ops/sec |
Array.from | 771951.9 Ops/sec |
Object.values | 183870.6 Ops/sec |
Array.concat | 1555811.1 Ops/sec |