DEV Community

Cover image for Which String methods you wish JavaScript API had?
JoelBonetR 🥇
JoelBonetR 🥇

Posted on • Edited on

3 3

Which String methods you wish JavaScript API had?

Cover image credits: tutsmake.com
Those sort of functions/methods you usually copy-paste from a project to another in a utils.js file 😂

i.e. we have toLowerCase, toUpperCase but not capitalize or toCamelCase or toPascalCase

undefined is not a function meme

Share your string utils!

Top comments (1)

Collapse
 
thi3rry profile image
Thierry Poinot • Edited

I usually have str_pad from locutus lib (previously phpjs) that I use to log things in nodejs console without other lib requirements : locutus.io/php/strings/str_pad/ind...

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more