Use Object.keys and native forEach instead of lodash.each