Warning: Undefined array key "HTTP_REFERER" in /home/u522501990/domains/makemeengr.com/public_html/wp-content/themes/generatepress/generatepress.theme#archive on line 43

Convert returned JSON Object Properties to (lower first) camelCase

If you would use lodash instead of underscore, this would do:

_.mapKeys(obj, (v, k) => _.camelCase(k))

This would convert both TitleCase and snake_case to camelCase. Note that it is not recursive though.

Leave a Comment

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduseduedueduedusedusedueduedu