DEV Community

Discussion on: Get the last character of a string

Collapse
 
jonrandy profile image
Jon Randy 🎖️
const last = [...str].pop()
Enter fullscreen mode Exit fullscreen mode