Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Object.assign() - mention similarity to _.extend()? #99
Since so many people use Underscore.js and jQuery and they call their
(I guess mentioning specific libraries might complicate the discussion too much, since although the Underscore one is totally equivalent to Object.assign(), the jQuery one isn't due to supporting deep copy).
I agree the section stands pretty strong on its own, but I'd maybe suggest a few tweaks that may make it a little clearer:
Maybe add a brief cross-reference to the
Maybe change this to "which behaves similarly", because it accepts multiple sources and therefore is different from the
I found this the trickiest sentence in this section. What about simplifying a bit to say the following:
"This pattern became popular enough that ECMAScript 6 added
And then leave all of the messy details about the limitations of the assignment operator to the Working with Accessor Properties box?
(References I used for my suggestions above)