📅  最后修改于: 2022-03-11 15:02:22.200000             🧑  作者: Mango
function isPalindrome(text) {
return [...text].reverse().join('') === text;
}
isPalindrome = text => {
return [...text].reverse().join('') === text;
}
isPalindrome = text => [...text].reverse().join('') === text;