Skip to content

Instantly share code, notes, and snippets.

@gemmadlou
Created July 12, 2019 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gemmadlou/fc16ec4515e2fda69d2a61cac53f3b2d to your computer and use it in GitHub Desktop.
Save gemmadlou/fc16ec4515e2fda69d2a61cac53f3b2d to your computer and use it in GitHub Desktop.
Lower case keys
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