Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. const spreadIntoArray = [
  2. 'item 1',
  3. 'item 2',
  4. ...moreItems, // Always put this last comma.
  5. ] // No semicolon needed.
  6.  
  7. const spreadIntoObject = {
  8. ...aFewProps,
  9. ...someProps, // Always put this last comma.
  10. } // No semicolon needed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement