I am getting an esLint warning on the below to use object destructuring.
Can I do this reassigning an already declared variable as per the below example, or should I just ignore the esLint warning.
let testA = 0;
if (condition) {
testA = myObj.testA;
// cannot do 'const { testA } = myObj;' because I have already declared testA in the above scope
}