Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement