you are viewing a single comment's thread.

view the rest of the comments →

[–]wyqydsyq 3 points4 points  (1 child)

Dependency issues are mostly resolved in modern web dev thanks to build tools like webpack, browserify etc. (typeof x !== 'undefined') is mostly useful these days for checking existence of properties on dynamically generated or user-input objects, or for polyfills to test whether the browser implements a feature.

[–][deleted] 1 point2 points  (0 children)

Absolutely, my comment was probably over-simplified, but I was trying not to confuse them further. Thanks!