Is there a way in ES6 to destructure a parameter and reference it by name as well?
myfunction(myparam) {
const {myprop} = myparam;
...
}
Can this be done in a single line in the function parameter list? Something similar to Haskell's @
in pattern matching.