Hi,
Am I correct in thinking that there's an inherent conflict in using spread syntax & performance (penalty caused by megamorphism)?
Example below:
const object = { a: 1, b: 2, c: 3 };
const modifiedObject = { ...object, b: 2 };
const evenMoreModifiedObject = { ...object, a: 2 };
Thanks,
Pawel