DEV Community

Discussion on: What was your win this week?

Collapse
 
skaytech profile image
skaytech • Edited

Hey Gracie...

Good to see your Friday post :-) hope you had a great week!
This week, I made good inroads to learning React library. But, more importantly I was running out of time to come up with my weekly article for dev.to.
As I was wondering what to do, I saw a video tweet on an excellent Javascript tip from a fellow developer Simon & collaborated with him to publish my first collaborative post ever!!
Here's the link to the post -> dev.to/skaytech/making-an-argument...

Quiet a few experienced devs told me that it's a great tip. I loved this post because it kind of opened up possibilities of ideating with others & I'm loving every bit of the synergy :-)

Thanks to you guys to have created this awesome platform and kudos to you to have such wonderful speeches by experienced devs all over the world..well done!!!

Collapse
 
daniguardiola profile image
Dani Guardiola_

That's a smart hack! Of course, typescript takes care of this, but if you're using plain JavaScript and don't care about anything other that the argument not being undefined, this is a clever solution!

If you're already type-checking then you don't need this though. So it depends on the specific case.

Anyway, nice! I'll drop u a follow.

Collapse
 
skaytech profile image
skaytech

True that! Thanks for your note & the follow.