docs: function isByteLength(str, options) {
  	assertString(str);
  	var min = void 0;
  	var max = void 0;
  	if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {
  		min = options.min || 0;
  		max = options.max;
  	} else {
  		// backwards compatibility: isByteLength(str, min [, max])
  		min = arguments[1];
  		max = arguments[2];
  	}
  	var len = encodeURI(str).split(/%..|./).length - 1;
  	return len >= min && (typeof max === 'undefined' || len <= max);
  }