Created
July 12, 2019 08:33
-
-
Save gemmadlou/fc16ec4515e2fda69d2a61cac53f3b2d to your computer and use it in GitHub Desktop.
Lower case keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lower = list.map((item) => ( | |
Object.keys(item).reduce((obj, key) => { | |
obj[key.toLowerCase()] = item[key] | |
return obj | |
}, {}) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment