cannot assign to read only property of object code example
Example 1: Cannot assign to read only property 'value' of object '[object Object]
elementReadOnly = {...elementReadOnly, fieldModified: value};
Example 2: Cannot assign to read only property '0' of object '[object Array]'
array = array.slice().sort((a, b) => b.stats.speed - a.stats.speed)