loading...

re: The shortest way to conditional insert properties into an object literal VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why should I choose the shortest way if it needs an article to be explained? In my opinion, the best code is the self-explanatory one, not the shor...
 

It's called an "idiom". Like any other idiom, including idioms in naturally language, you have to learn it. That doesn't mean it's not useful. If people run into it and are not familiar with it, they'll figure it out quickly and then know it themselves.

 

I completely agree with you.

Code of Conduct Report abuse