Axel Rauschmayer (2014-01-13T16:02:52.000Z)
domenic at domenicdenicola.com (2014-01-17T23:55:48.527Z)
> Brendan Eich wrote: >>> I can only think of cases (including Claude Pache’s pro-enumerability example) where I would want to copy *all* own properties. >> >> Why do you want an array's .length to be copied? > > Or in Claude's example, why should a non-enumerable _parent be copied? > > Claude's words about the advantage of non-enumerable _parent *not* being copied were pretty clear. He was not advocating *all* own properties. > > http://esdiscuss.org/topic/enumerability#content-2 True. I was thinking shallow clone: ```js var copy = Object.assign({ __proto__: obj.__proto__ }, obj); ``` But `Object.mixin()` (or `Object.define()`, I thought the case for re-renaming it was convincing) is probably a better match here. Will `keys()`, `values()` and `entries()` from module "@dict" ignore non-enumerable properties, too?