I have code like this in my code:
let [a, b, c, d, e] = await component.getState.call(game.gameId);
Variables b
, c
, e
used below in code but not a
and d
. In the same time I have eslint check that marks unused variables.
Is there any way to write destruction more correct to resolve this issue? I know about esling-disable-line no-unused
but prefer to avoid it.
Replace it with empty placeholders:
let [, b, c, , e] = await component.getState.call(game.gameId);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With