You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
157 B

2 years ago
  1. var a = require('a');
  2. var b = require('b');
  3. var c = require('c');
  4. var obj = { foo: 'bar', bee: 'bop' }
  5. var spread = { ...obj }
  6. var { foo, ...rest } = obj