题解 | #检查重复字符串#
检查重复字符串
http://www.nowcoder.com/practice/5ef31f11adf64d9fb18d74860e9ab873
return str.split('').some((el, i) => ((65 <= str.charCodeAt(i) && str.charCodeAt(i) <= 90) || (97 <= str.charCodeAt(i) && str.charCodeAt(i) <= 122)) && (str.charCodeAt(i) === str.charCodeAt(i + 1)));