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