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