Retitle snippets

This commit is contained in:
Chalarangelo
2022-02-13 18:21:11 +02:00
parent e2429f5d4d
commit cd58cfe194
76 changed files with 78 additions and 78 deletions

View File

@ -1,5 +1,5 @@
---
title: fromCamelCase
title: String from camelcase
tags: string,intermediate
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
@ -20,7 +20,7 @@ const fromCamelCase = (str, separator = '_') =>
```js
fromCamelCase('someDatabaseFieldName', ' '); // 'some database field name'
fromCamelCase('someLabelThatNeedsToBeDecamelized', '-');
fromCamelCase('someLabelThatNeedsToBeDecamelized', '-');
// 'some-label-that-needs-to-be-decamelized'
fromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property'
fromCamelCase('JSONToCSV', '.'); // 'json.to.csv'