Sign up
Sign in
…t: "Something went wrong!" }); }}export function trimName(name) { return name.slice(0, 30) + (name.lenght > 30 ? '...' : '')}
Pavel Pogosov
Vishal Gupta
Follow
--
Share
It should be name?.length
Full Stack developer
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams