isEqualTo(other) {
        if (other instanceof Complex) {
            return this.real === other.real && this.imag === other.imag;
        }
        if (typeof other === "number") {
            return this.real === other && this.imag === 0;
        }
        return false;
    }
Determines if the receiving complex value is equal to the given complex, integer, or float value.
This method returns false, instead of throwing, when given badly typed arguments.
@param {!number|!Complex|*} other
@returns {!boolean}