DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦 Transform a camelized/dasherized/underscored/etc string into a readable string

from functorflow import f

print(f('clean-string', 'fooBar'))
# 'Foo bar'

print(f('clean-string', 'lorem-ipsum'))
# 'Lorem ipsum'


print(f('clean-string', 'BigBang_theory'))
# 'Big bang theory'
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
djavakh profile image
Джавахир Одилов

samandar