loading...

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

TOP OF THREAD FULL DISCUSSION
re: That's awesome. Thanks for posting. I didn't know that the rest operator could take an expression (though it does make sense). I think your exampl...
 

I think you will understand that this is beyond the scope of the article.
My first point was to show a nice, little know js fact. The second was to explain why such code is allowed.
All the rest is left to the reader's good will and curiosity :D

Code of Conduct Report abuse