Test case name | Result |
---|---|
Array.flat | |
reduce + concat | |
reduce + destructure | |
reduce + push | |
lodash.flatten | |
destructuring |
Test name | Executions per second |
---|---|
Array.flat | 331516.5 Ops/sec |
reduce + concat | 1050882.2 Ops/sec |
reduce + destructure | 1678055.4 Ops/sec |
reduce + push | 2987491.5 Ops/sec |
lodash.flatten | 1431141.4 Ops/sec |
destructuring | 1487233.4 Ops/sec |