SOURCE

/**
 * 计算字符串字符重复数量
 * params {String}
 * return {Number}
 */
function getRepeatCount(str) {

}

console.log(getRepeatCount('ababc')) // 2
console.log(getRepeatCount('abcdec')) // 1
console.log(getRepeatCount('abcde')) // 0
console 命令行工具 X clear

                    
>
console