{"size": 402, "ext": "js", "max_stars_repo_path": "tool/string.js", "max_stars_repo_name": "hug-code/vue-empty-frame", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tool/string.js", "max_issues_repo_name": "hug-code/vue-empty-frame", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tool/string.js", "max_forks_repo_name": "hug-code/vue-empty-frame", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.2727272727, "max_line_length": 77, "alphanum_fraction": 0.5721393035}
/**
 * 随机字符串
 * @param len
 * @returns {string}
 */
export function randomString(len = 16) {
  let t = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",
    a = t.length,
    n = "";
  for (let i = 0; i < len; i++) n += t.charAt(Math.floor(Math.random() * a));
  return n
}

/**
 * 去除左右空格
 * @param str
 * @returns {*}
 */
export function strTrim(str) {
  return str.replace(/(^\s*)|(\s*$)/g, "");
}
