Closed LaurineDaSilva closed 6 months ago
Why is ESLint unhappy with const status = response.status; and happy with const { status } = response.status;.
const status = response.status;
const { status } = response.status;
Error message: error Use object destructuring prefer-destructuring
error Use object destructuring prefer-destructuring
Why is ESLint unhappy with
const status = response.status;
and happy withconst { status } = response.status;
.Error message:
error Use object destructuring prefer-destructuring