我的代码中有这样的代码:
let [a, b, c, d, e] = await component.getState.call(game.gameId);
变量b
, c
,e
在下面的代码中使用但不是a
and d
。同时我有 eslint 检查标记未使用的变量。
有没有办法更正确地编写破坏来解决这个问题?我知道esling-disable-line no-unused
但更愿意避免它。
我的代码中有这样的代码:
let [a, b, c, d, e] = await component.getState.call(game.gameId);
变量b
, c
,e
在下面的代码中使用但不是a
and d
。同时我有 eslint 检查标记未使用的变量。
有没有办法更正确地编写破坏来解决这个问题?我知道esling-disable-line no-unused
但更愿意避免它。