Is it possible to use reserved keywords in an object destructing assignment.
Specifically I am trying to handle JSON with property property named default.
//Doesn't compile
class FooBar {
constructor({foo, default}) {
this.foo = foo;
this.default = default;
}
}
/* json from server {foo: "bar", default: true} */
new FooBar(json);