Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### lowercaseKeys
|
||||
---
|
||||
title: lowercaseKeys
|
||||
tags: object,intermediate
|
||||
---
|
||||
|
||||
Creates a new object from the specified object, where all the keys are in lowercase.
|
||||
|
||||
@ -16,4 +19,4 @@ const lowercaseKeys = obj =>
|
||||
```js
|
||||
const myObj = { Name: 'Adam', sUrnAME: 'Smith' };
|
||||
const myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'};
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user