my-idlers/node_modules/detective/test/files/rest-spread.js

10 lines
157 B
JavaScript
Raw Normal View History

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