Object.assign vs Spread operator.
const obj1 = { a: 1, b: 2 };
const obj2 = { c: 3, d: 4 };Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| Object.assign | | ready |
| Spread operator | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.