Clean way to keep original variable and destructure at the same time

One possible way:

const result = doSomething(), 
    { a, b } = result;

You still have to duplicate the name, though. const token isn’t quite right-handy. )

Leave a Comment