Open graingert opened 6 years ago
because { __proto__: null, foo: 'bar'}
is discouraged
🎉
keithamus this isn't closed yet.
Yeah, I dont know why I closed this one.
What about object extension literals?
// Object.assign(Object.create(null), { foo: 'bar'})
let x = null {
foo: 'bar'
}
// Object.assign(Object.create(x), { bar: 'baz'})
let y = x {
bar: 'baz'
}
eg
Object.assign(Object.create(null), { foo: 'bar' });
with no freeze or seal