​​Avoiding those dang "cannot read property of undefined" errors

added by JavaScript Kicks
2/14/2019 8:01:35 AM

296 Views

​​​​ Uncaught TypeError: Cannot read property 'foo' of undefined. ​ The dreaded error we all hit at some point in JavaScript development. Could be an empty state from an API that returns differently than you expected. Could be something else. We don't know because the error itself is so general and broad.


0 comments