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