Javascript – Is there a js shorthand contructor parameter assignment?
class MyClass { constructor(prop1, prop2, prop3, prop4) { this.prop1 = prop1 this.prop2 = prop2 this.prop3 = prop3 this.prop4 = prop4 //prop 50 and so on } } In js, for this type of constructor assigning where all I'm doing is…