Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 542 Bytes

114-kebabize.md

File metadata and controls

10 lines (9 loc) · 542 Bytes

Problem:

Modify the kebabize function so that it converts a camel case string into a kebab case.

kebabize('camelsHaveThreeHumps') // camels-have-three-humps
kebabize('camelsHave3Humps') // camels-have-humps

Notes:

  • the returned string should only contain lowercase letters

Solution