feat: add case

This commit is contained in:
yinpeng.wyp
2020-10-21 14:10:00 +08:00
parent 920a0c390b
commit 2bd8ecedbf

View File

@ -20,4 +20,5 @@ const fromCamelCase = (str, separator = '_') =>
fromCamelCase('someDatabaseFieldName', ' '); // 'some database field name'
fromCamelCase('someLabelThatNeedsToBeDecamelized', '-'); // 'some-label-that-needs-to-be-decamelized'
fromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property'
fromCamelCase('JSONToCSV', '.'); // 'json.to.csv'
```