const _isPalindrome = string => { // 补全代码 const arr = Array.from(string); const str = arr.reverse().join(''); return string === str }