nzakas / understandinges6

Content for the ebook "Understanding ECMAScript 6"
5.45k stars 796 forks source link

Mention `Set#add()` chains? #375

Closed tdd closed 7 years ago

tdd commented 7 years ago

Hi Nicholas,

Location: Chapter 7 > Page 123 > "Creating Sets and Adding Items" > Top of the page

Your add() examples all use single calls. I thought it may be nice to mention add() chains, so it returns the (possibly-mutated) Set.

nzakas commented 7 years ago

That would require more significant changes than I'm willing to introduce at this point (it's hard to describe this in errata). Good suggestion, unfortunately it's just too late in the process for such a change.