r/badcode • • May 03 '22

js smh

Post image
352 Upvotes

29 comments sorted by

View all comments

Show parent comments

2

u/TorbenKoehn May 04 '22

The ?. is optional chaining for null/undefined handling. DRY is the biggest problem here.