DEV Community

Discussion on: Rename Variable While Destructuring In Javascript

Collapse
 
stojakovic99 profile image
Nikola Stojaković

Not much related, but sometimes I wish there is something like TypeScript import renaming in the Javascript which would allow this;

const { name1 as name2 } = someObject;