Front end developer specialising in JavaScript and React. Experienced in all aspects of modern front end development. Passionate about making accessible, secure and performant software.
Hey, thanks for the suggestion. The optional chaining operator helps. However, it's just an if statement with more concise syntax.
In terms of the article, it would fall under the strategies of "use a null check around everything" or "remember to check for every null", depending on if you do it everywhere or only when you need it. However, the syntax isn't a strategy in itself.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey, thanks for the suggestion. The optional chaining operator helps. However, it's just an if statement with more concise syntax.
In terms of the article, it would fall under the strategies of "use a null check around everything" or "remember to check for every null", depending on if you do it everywhere or only when you need it. However, the syntax isn't a strategy in itself.