myFunc();
}, 50);
-// Only the second argument from the descructured array is used.
+// Only the second argument from the destructured array is used.
function getY([, y]) {
return y;
}
```js
/*eslint no-unused-vars: ["error", { "ignoreRestSiblings": true }]*/
-// 'type' is ignored because it has a rest property sibling.
-var { type, ...coords } = data;
+// 'foo' and 'bar' were ignored because they have a rest property sibling.
+var { foo, ...coords } = data;
+
+var bar;
+({ bar, ...coords } = data);
```
### argsIgnorePattern