Object copy

Rick Waldron waldron.rick at gmail.com
Wed Jun 11 06:52:11 PDT 2014


On Wednesday, June 11, 2014, Maxime Warnier <marmax at gmail.com> wrote:

> Thanks for your answers.
>
> Object.assign seems good but provides only copy for enumerable
> properties, not a real deep clone.
>
> I know for jquery, that's why i precised "only for DOM" but it was
> just to show the syntax :)


Oops, sorry, I overlooked that.

Rick

>
> 2014-06-11 0:00 GMT+02:00 Rick Waldron <waldron.rick at gmail.com
> <javascript:;>>:
> >
> >
> >
> > On Tue, Jun 10, 2014 at 12:32 PM, Maxime Warnier <marmax at gmail.com
> <javascript:;>> wrote:
> >>
> >> Hi All
> >>
> >> Do you know if it is planned or maybe in discussion for ES7 to have a
> >> simple clone system on objects ?
> >>
> >> There are different notations, from :
> >>
> >>  - jquery
> >>
> >> Object.clone( [withDataAndEvents ] [, deepWithDataAndEvents ] )
> >
> >
> > jQuery doesn't clone objects, it clones DOM elements.
> >
> > Rick
>
>
>
> --
> Maxime
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140611/d47346b8/attachment.html>


More information about the es-discuss mailing list