re: What was your win this week? VIEW POST

VIEW FULL DISCUSSION
 

This week, I finally took the time to add optional chaining into a JS project (something I'd been saying I was going to do for ages but never found the time). Out with the:

something && something.somethingElse && something.somethingElse.someOtherThing

and in with the

something?.somethingElse?.someOtherThing

😄

Barney Stinson high-fiving himself

code of conduct - report abuse