LeetCode每日一练【9】
LeetCode每日一练
Palindrome Number
/*
* @Author: fox
* @Date: 2022-04-25 07:29:15
* @LastEditors: fox
* @LastEditTime: 2022-04-25 07:45:12
* @Description: https://leetcode.com/problems/palindrome-number/
*/
/**
* @param {number} x
* @return {boolean}
*/
const isPalindrome = x => `${x}` === `${x}`.split('').reverse().join('')