In ES6, is there a way to call a parent constructor passing through variadic arguments, a la foo.apply(this, arguments)
? I\'ve looked for an answer, and the onl
The pattern I find convenient and follow is
constructor(...args) {
super(...args);
}
In case you have and use named arguments you could do this instead:
constructor(a, b, c) {
super(...arguments);
}
References: