Closed daveisfera closed 4 years ago
Thanks for the kind words! :)
Interesting! I think this issue is only with array representation of the path. with strings it already works:
Wanna submit a pull request? :) I'm fairly sure this is an easy fix.
Ya, I'll take a stab at it
Thanks for this awesome codemod!
While running on our code, we noticed that it doesn't handle names that need to be made strings correctly. For example,
get(['value', 'something-else'], data)
is changed todata?.value?.something-else
when it should bedata?.value?.['something-else']