Array.prototype.concat vs spread operator
Compare the new ES6 spread operator with the traditional concat() method
6 years ago
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Test name |
Executions per second |
lodash merge |
2073472.4 Ops/sec |
object.assign |
2849517.5 Ops/sec |
Tests:
-
lodash merge
-
object.assign
Open this result on MeasureThat.net