Update lowercaseKeys.md
This commit is contained in:
@ -11,8 +11,6 @@ const lowercaseKeys = obj =>
|
|||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let myObj = {Name: 'Adam', sUrnAME: 'Smith'};
|
const myObj = {Name: 'Adam', sUrnAME: 'Smith'};
|
||||||
let myObjLower = lowercaseKeys(myObj);
|
const myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'};
|
||||||
console.log(myObj); // {Name: 'Adam', sUrnAME: 'Smith'};
|
|
||||||
console.log(myObjLower); // {name: 'Adam', surname: 'Smith'};
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user