function assert$1(condition, message) {
    if (!condition) {
        throw new Error(message);
    }
}
@memberOf module:zrender/core/util
@param {string} str string to be trimed
@return {string} trimed string