The shortest way to conditional insert properties into an object literal

added by JavaScript Kicks
3/28/2019 6:54:38 AM

577 Views

What am I ranting about? I'm talking about this: Trust me, this is perfectly acceptable and executable JavaScript. Surprised? Shaken up? Aghast? Maybe just intrigued? Bear with me for few lines, I'll try to explain what's going on thanks to the ECMAScript Language Specification. It won't be so boring, I new Promise().


0 comments