In ES6, is ({width: this.width} = this.canvas);
the same as this.width = this.canvas.width;
?
If not, what will the correct code be?
In ES6, is ({width: this.width} = this.canvas);
the same as this.width = this.canvas.width;
?
If not, what will the correct code be?