Sep 8, 2018 · 1 min read
I’ve done this a couple of times, but the performance implications worry me.
I understand that the object isn’t constructed if the condition is false, but still
- Every falsy value is destructured (yielding no keys)
- In every truthy case, an object is constructed and destructured.
Do you know for a fact this is okay?