hugoWebsite/node_modules/detective/test/files/rest-spread.js

10 lines
157 B
JavaScript

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