//没有使用正则
function containsRepeatingLetter(str) {
    let arr = str.split('')
  return  arr.some((item, index) => {

    //判断该项是否是数字
      if(!isNaN(item + 1)){
          return false
      }

    //为字母时,判断前后两项是否相等
        return item === arr[index + 1]
    })
}