ReactiveX / learnrx

A series of interactive exercises for learning Microsoft's Reactive Extensions Library for Javascript.
1.4k stars 291 forks source link

Exercise 19 - some clarity on why to use Object.create #63

Closed dwilbank68 closed 9 years ago

dwilbank68 commented 9 years ago

Hi. It took a day or two for me to get an explanation on why Object.create is necessary in this exercise (being that the exercise will work quite well without creating a new object). Tell me if I'm right. You want to create that new object only if you want that object to survive after the reducing is finished... so you can use that object elsewhere in your code. Even though the object is returned from the reduction. Am I close?

A little more explanation would be helpful.

Thanks for the tutorial so far!