Javascript Spread Conditionally Into Object Or Array Spread When

Javascript Spread Conditionally Into Object Or Array Spread When