equals(rectangle)
    {
        return !!rectangle
            && rectangle.x === this.x
            && rectangle.y === this.y
            && rectangle.width === this.width
            && rectangle.height === this.height;
    }
/**
     * Checks if the passed rectangle is equal to this one (has the same points).
     *
     * @param {Rectangle} rectangle - The rectangle to check for equality.
     * @return {boolean} Whether rectangle are equal.
     */
Checks if the passed rectangle is equal to this one (has the same points).
@param {Rectangle} rectangle - The rectangle to check for equality.
@return {boolean} Whether rectangle are equal.
Checks if the passed rectangle is equal to this one ( has the same points ) . @param { Rectangle } rectangle - The rectangle to check for equality . @return { boolean } Whether rectangle are equal .
equals(rectangle)
    {
        return !!rectangle
            && rectangle.x === this.x
            && rectangle.y === this.y
            && rectangle.width === this.width
            && rectangle.height === this.height;
    }
equals ( rectangle ) { return ! ! rectangle && rectangle . x === this . x && rectangle . y === this . y && rectangle . width === this . width && rectangle . height === this . height ; }
Checks if the passed rectangle is equal to this one (has the same points).
Checks if the passed rectangle is equal to this one ( has the same points ) .