26
rated 0 times
[
27]
[
1]
/ answers: 1 / hits: 167503
/ 8 Years ago, tue, june 28, 2016, 12:00:00
I'm looking through the lodash docs and other Stack Overflow questions - while there are several native JavaScript ways of accomplishing this task, is there a way I can convert a string to title case using purely lodash functions (or at least existing prototypal functions) so that I don't have to use a regular expression or define a new function?
e.g.
This string ShouLD be ALL in title CASe
should become
This String Should Be All In Title Case
More From » lodash