UNPKG
@samlevy/string-helpers
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.1
1.0.0
Basic string helper functions
github.com/samlev/string-helpers
samlev/string-helpers
@samlevy/string-helpers
/
src
/
camel.ts
10 lines
(8 loc)
•
185 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
lcfirst
from
"./lcfirst"
;
import
studly
from
"./studly"
;
/** * Convert a string to camelCase * *
@param
str
*/
export
default
(
str
:
string
):
string
=>
lcfirst
(
studly
(str));