Test case name | Result |
---|---|
Array.flat | |
reduce + concat | |
reduce + destructure | |
reduce + push | |
lodash.flatten | |
destructuring |
Test name | Executions per second |
---|---|
Array.flat | 1880545.5 Ops/sec |
reduce + concat | 906729.4 Ops/sec |
reduce + destructure | 840495.9 Ops/sec |
reduce + push | 988102.6 Ops/sec |
lodash.flatten | 2671974.5 Ops/sec |
destructuring | 2134282.0 Ops/sec |