Write a function that will turn a camelCase word into a regular one by adding spaces and lower-casing the words.
Examples
ccbreaker("camelCasing")
== "camel casing"
ccbreaker("garbageTruck")
== "garbage truck"
Tests
ccbreaker("policeSiren")
== "police siren"
ccbreaker("camelCasingTest") ==
"camel casing test"`
Good luck!
This challenge comes from hakt on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!
Oldest comments (10)
dart
Java Streams
C++ solution
Rare case where PHP is concise.
3v4l.org/1vCqj
JavaScript using regex
Java
Python
python
The link seems to be after a completely different test
In rust!
Rust Playground
GitHub Gist