How can I resolve the ESLint error that says "Use array destructuring. eslint(prefer-destructuring)"? The error occurs on this line of my code:
let foo = 1;
foo = obj.data[i][1]; //ESLint error on this line
If anyone could provide assistance in fixing this, it would be greatly appreciated.