optional-chaining-codemod
optional-chaining-codemod copied to clipboard
Add support for getOr
Fixes #35
Also, fixed the handling for of 0 in the path because it was being rejected for being falsy
I added code to fix #24 as well
Thanks for the PR @daveisfera ! And sorry for super late reply.
Looks like the tests are failing on this one. I've added github actions to the repo so by rebasing you'll see the results here too.
I no longer have access to the codebase that I wrote this for, so I don't have a way to test/change anything with this PR. if you don't have the time/interest to fix it, then go ahead and close it.
@villesau I'm gonna take a shot at getting this PR passing. Wish me luck. Thanks for making this codemod!