const _isPalindrome = (string) => { // 字符串拆分为数组,反转后在转为字符串比较 return string.split("").reverse().join("") === string; };