panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.6k stars 137 forks source link

[Feature Request] Pascal Case #37

Closed mattblackdev closed 6 years ago

mattblackdev commented 6 years ago

Hi,

Great lib! Is there not a pascal case function? Didn't see it in docs or issues but I'm surprised. I assume it could easily be done like this:

v.chain('my thing').camelCase().capitalize().value() // -> 'MyThing'

Would a PR be accepted for this?

panzerdp commented 6 years ago

Hi @mattblackdev,

Pascal case can be easily reproduced with other 2 functions, so I'm not interested in adding a new function for it.

Thanks.

LandonSchropp commented 3 years ago

I'd like to add a +1 to this. Yes, it can be easily replaced with camelCase and capitalize, but this is something I find myself reaching for often, and it would be more convenient to have a built-in method for it. It also feels a little incomplete without it when the other case variants are represented.