Ad
Code
Diff
  • export const reverseInt = (n: number) => +[...""+n].reverse().join("")
    
    
    
    
    • export function reverseInt(n: number): number {
    • return +[...""+n].reverse().join("")
    • }
    • export const reverseInt = (n: number) => +[...""+n].reverse().join("")