function invariant(condition, message, Err) {
        if (Err === void 0) { Err = Error; }
        if (!condition) {
            throw new Err(message);
        }
    }
Cannot do Math.log(x) / Math.log(10) bc if IEEE floating point issue
@param x number