Is there a cleaner way to do this (with anything that is at least an ES draft and has a babel plugin, i.e., ES6, ES7, etc.):
const { a, b } = result = doSome
One possible way:
const result = doSomething(), { a, b } = result;
You still have to duplicate the name, though. const token isn't quite right-handy. )
const