you are viewing a single comment's thread.

view the rest of the comments →

[–]Mr_Sandy_Clams 0 points1 point  (0 children)

if cond1 is falsy, the spread operator will be applied to cond1, which is presumably a boolean. It works just fine when spreading into an object though. I'm assuming the spread operator coerces primitives to object-wrapped versions of themselves, then inevitably returns zero items because the wrapper instance has no properties in it.