RetweetJS #1

Aug 19, 2018 · 1 min read

A weekly(ish) digest of notable JavaScript related tweets from my Twitter bubble

This week, we have two handy tips that will make your development life a little easier PLUS a surprising revelation about Facebook’s codebase that you don’t want to miss! Enjoy!

❌ Don’t mutate me

A tiny utility snippet to delete a key from an object without mutating the underlying data structure.

🙈 New monkey, old tricks

@qequop asks if monkey-patching old React APIs to allow compatibility with outdated dependencies is legit. Turns out Facebook internally resort to the same solution. 👏

😏 Log this

Handy tip for when you’re using arrow functions with an implicit return and need to log a value.

That’s it for this week! I’m keen to keep it as a regular thing so do let me know in the comments if you find this useful 😀

Jishaal Kalyan

Written by

Developer at Xero

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade