array.sort TypeError: Cannot assign to read only property '0' of object '[object Array]' code example
Example: Cannot assign to read only property 'value' of object '[object Object] js
elementReadOnly = {...elementReadOnly, fieldModified: value};
elementReadOnly = {...elementReadOnly, fieldModified: value};