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('')
posted @ 2022-04-25 07:47  白い故雪  阅读(2)  评论(0编辑  收藏  举报