re: Are there functions similar to Ruby's `dig` in other languages? VIEW POST

FULL DISCUSSION
 

I'm not sure that ECMAScript 10/ES10/Javascript 2019 has a function like that, per se, but one new feature that will likely be in ES11 that would help you get the safe-access bit of these dig functions in JS would be using the new proposed nullish-coalescing syntax.

The current version of Swift does already have null-coalescing, though.

code of conduct - report abuse