Syllabus/themes/piratecare/node_modules/detective/test/files/rest-spread.js

10 lines
157 B
JavaScript
Raw Normal View History

2020-03-05 04:10:52 +00:00
var a = require('a');
var b = require('b');
var c = require('c');
var obj = { foo: 'bar', bee: 'bop' }
var spread = { ...obj }
var { foo, ...rest } = obj