Sawtaytoes
3/14/2019 - 10:42 PM

Comma Object Spread example

const spreadIntoArray = [
  'item 1',
  'item 2',
  ...moreItems, // Always put this last comma.
] // No semicolon needed.

const spreadIntoObject = {
  ...aFewProps,
  ...someProps, // Always put this last comma.
} // No semicolon needed.