Re:Console.table()
by foreigner on Thursday June 14, 2018 @03:53AM
(#17310113)
Nice! Thank you
[ Parent
| on HN ]
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...