It seems that Object.assign
does not assign properties that are not enumerable.
var weasel = {test: 1};
Object.defineProperty(weasel,
'isFetching',
{
value: true,
writable: true,
enumerable: false
})
Object {test: 1, isFetching: true}
Object.assign({}, weasel);
Object {test: 1}
Is there a way around this?