es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

Support for `capitalCase`

Open TiBianMod opened this issue 1 year ago • 2 comments

nice to have:

capitalCase("hello world")
// output: Hello World

es-toolkit already supports some *case. not the same as capitalize

TiBianMod avatar Jul 24 '24 00:07 TiBianMod

I think you can use startCase

joris-gallot avatar Aug 09 '24 09:08 joris-gallot

startCase removes special characters, which is not desired in this scenario - see https://github.com/lodash/lodash/issues/3383 for discussion on this.

hisham avatar Jan 24 '25 16:01 hisham