Dennis Hackethal’s Blog

My blog about philosophy, coding, and anything else that interests me.

Tweet

This mirrored tweet of mine may be formatted slightly differently than on Twitter.

Dennis Hackethal

@giovannibenussi @SimonHoiberg

I think it would be better to simply declare a get fn and then pass it the object and an array of nested properties. Fewer question marks that way.

Has the additional benefit of being able to map/filter/reduce over the nested properties before using them on the object.


What people are saying

Below comments were posted on this blog, not on Twitter.

What are your thoughts?

Your comment won’t be posted to Twitter, only to my blog.
You are responding to comment #. Clear

Preview

Markdown supported. cmd + enter to comment. Your comment will appear upon approval. You are responsible for what you write. Terms, privacy policy
This small puzzle helps protect the blog against automated spam.

Preview