Sure, there are drawback to this method, although I've been using it in a large project for quite some time now and frankly didn't find many practical issues so far. I'm not saying you're wrong obviously, but can you provide some actuals example of when this could cause issues?
I'm a typescript guy (or any statically typed language) so I view stringly typed as the single worst thing possible. The potential to make typos that are difficult to find is just too high for me.
2
u/voyti Feb 20 '18
I looked for this a lot and it seems currently the best way is to use lodash _.get function, here's an example if anyone's interested:
But nice to see it as native operator. I like to call it 'soft dot' myself