Update lowercaseKeys.md

This commit is contained in:
Angelos Chalaris
2017-12-29 15:33:04 +02:00
committed by GitHub
parent 2512cb6d34
commit accc5645a2

View File

@ -11,8 +11,6 @@ const lowercaseKeys = obj =>
```
```js
let myObj = {Name: 'Adam', sUrnAME: 'Smith'};
let myObjLower = lowercaseKeys(myObj);
console.log(myObj); // {Name: 'Adam', sUrnAME: 'Smith'};
console.log(myObjLower); // {name: 'Adam', surname: 'Smith'};
const myObj = {Name: 'Adam', sUrnAME: 'Smith'};
const myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'};
```