TypeError: Cannot assign to read only property ‘0’ of object ‘[object Array]’ in typescript

Try creating a copy of the array before trying to sort it. Like using a spread operator.

arrayForSort = [...this.taskList]

Then after sorting you could assign it back to the taskList field

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)