domchristie / humps

🐫 Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript.
1.42k stars 100 forks source link

CamelizeKeys converts functions into empty objects #33

Open n-lai opened 7 years ago

n-lai commented 7 years ago

When running an object that contains keys with functions as values through camelizeKeys, the functions are converted into empty objects.

webmasterkai commented 7 years ago

If you don't mind a depending on specific lodash functions you can check out https://www.npmjs.com/package/lodash-humps

edit: Oops, check out version 2 https://github.com/domchristie/humps/commit/49678e68dbf7cf70fb168b12e026a633066ce04f