How to determine equality between two ES6 class object instances? For example:
class Rectangle {
  constructor(height, width) {    
    this.height = height;
    this.width = width;
  }
}
(new Rectangle(1, 1)) === (new Rectangle(1, 1))
(new Rectangle(3, 0)) === (new Rectangle(9, 3))
The last two statements return false, but I want it to return true, to compare the instance properties, instead of the object references.
 
     
    