Conversation
|
I'm not sure what the "correct" thing to do here is. The way it works now is just a happy accident of using Once we support iterators, one thing that will be really useful is being able to have |
|
Another thought -- Haskell and other FP languages have the concept of an |
|
Going to merge this for now, we can have map return an array later. |
Map currently will attempt to assign keys to arrays and because of a bug in
nodeunitthis passes unit tests. I think map should either always return an array (ala lodash/underscore) for objects or do as this PR does/cc @aearly