题解 | #检查重复字符串#
检查重复字符串
http://www.nowcoder.com/practice/5ef31f11adf64d9fb18d74860e9ab873
function containsRepeatingLetter(str) { const matches = str.match(/[a-zA-Z]{1}/g) return matches.length !== Array.from(new Set(matches)).length }
检查重复字符串
http://www.nowcoder.com/practice/5ef31f11adf64d9fb18d74860e9ab873
function containsRepeatingLetter(str) { const matches = str.match(/[a-zA-Z]{1}/g) return matches.length !== Array.from(new Set(matches)).length }
相关推荐