On Fri, Oct 7, 2011 at 12:34 PM, Axel Rauschmayer <a...@rauschma.de> wrote:
> I would prefer the name Object.copyOwnPropertiesTo(source, target) or > Object.copyOwnTo(source, target) to the name “extend” (which, to me, > suggests inheritance). > > -- > Dr. Axel Rauschmayer > > I also think Object.extend suggests inheritance. Other possibilities would be: Object.merge() Object.mix() // Prior art: YUI's Y.mix() There is also the question about whether this new function would overwrite already existing properties or not. Juan
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss