Ad
Strings
Data Types
Code
Diff
  • const lastChar=s=>[...s].pop()
    
    • const lastChar=(s)=>s.slice(-1)
    • const lastChar=s=>[...s].pop()