Update toCamelCase snippet to use const instead of let
This commit is contained in:
@ -10,7 +10,7 @@ Converts a string to camelcase.
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const toCamelCase = str => {
|
const toCamelCase = str => {
|
||||||
let s =
|
const s =
|
||||||
str &&
|
str &&
|
||||||
str
|
str
|
||||||
.match(
|
.match(
|
||||||
|
|||||||
Reference in New Issue
Block a user