I\'ve come up with
function keysToLowerCase (obj) { var keys = Object.keys(obj); var n = keys.length; while (n--) { var key = keys[n]; // \"cache\"
The loDash/fp way, quite nice as its essentially a one liner
import { mapKeys } from 'lodash/fp' export function lowerCaseObjectKeys (value) { return mapKeys(k => k.toLowerCase(), value) }