Skip to content

Commit

Permalink
Always include destructuring transform (facebook#3788)
Browse files Browse the repository at this point in the history
* Always include destructuring transform

* Fix lint
  • Loading branch information
gaearon authored Jan 14, 2018
1 parent 359a255 commit 13204c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export default class extends Component {
return (
<div id="feature-object-destructuring">
{this.state.users.map(user => {
const { id, name } = user;
const { id, ...rest } = user;
// eslint-disable-next-line no-unused-vars
const [{ name, ...innerRest }] = [{ ...rest }];
return <div key={id}>{name}</div>;
})}
</div>
Expand Down

0 comments on commit 13204c6

Please sign in to comment.