Closed BWStearns closed 3 years ago
Motivation for this function was that using the transform-keys function at the boundaries of my API (DB and out to frontend) was causing issues where nested maps made of user data were getting cased as well. I know it's not a complex function to simply add into my utils.cljc file but it would be nice to have alongside the recursive version as well.
I'll let this PR stay unmerged until somebody more thinks this function belongs in the library.
Sorry, I am closing this PR due to lack of interest from other parties. It will hopefully still be discoverable by others who might need this code.
Make a function that will transform only the top level keys as opposed to recursively doing so.