This is how I've been doing it:
var props = { id: 1, name: 'test', children: [] }
//copy props but leave children out
var newProps = { ...props }
delete newProps.children
console.log(newProps) // { id: 1, name: 'test' }
Is there a cleaner, simpler way?
You could use a destructuring assignment:
(with the same rest/spread properties proposal for ES7 that you were already using)