News for hackers. Stuff that matters.
Re:Console.table() by anonytrary on Thursday June 14, 2018 @04:02AM (#17310153)
Completely tangential, but you can also do the opposite with nesting, which I learned about literally yesterday:

const { some: { nested: { field } } } = tree; // field === tree.some.nested.field

or rename things while you destructure them:

const { crappyFieldName: betterName } = myObject; // betterName === myObject.crappyFieldName

Now I can't stop using this feature...

There are no comments on this comment yet.