I like using destructure parameters in my functions but occasionally I want to get the entire object passed without reconstructing it.
function foo({a, b, c, d, e}) {
// How to get obj here?
}
foo(obj);
How can I get obj
without resorting to:
let obj = {a, b, c, d, e}
The arguments
variable is probably the key but it's an array(-like) object without the names.