I have encountered this issue on many places after some days of updating from Angular 8 to Angular 9. Earlier it was working fine.
Can anyone help me what's the problem. Example code below
list.reduce((acc, curr) => {
const obj = {};
obj['x'] = curr['Y'];
});