It seems like you can’t differentiate variable’s declaration in a one line. However, you could split it into two lines and use a different variable declaration, depends on which variable you want to get.
const { a } = foo;
let { b } = foo;
It seems like you can’t differentiate variable’s declaration in a one line. However, you could split it into two lines and use a different variable declaration, depends on which variable you want to get.
const { a } = foo;
let { b } = foo;