-
Notifications
You must be signed in to change notification settings - Fork 17
group
and groupToMap
why not merge into one api
#43
Comments
How would you specify that you wanted an object vs a Map, if it was in a single API? |
This comment was marked as resolved.
This comment was marked as resolved.
|
I guess in theory we could have a single API which produces "entries" (an array of pairs) and then that could be passed to either |
@michaelficarra how do you propose to handle keys? Object.keys(['1', 1, { toString() { return 1 } }].group(it => it)).length; // => 1
['1', 1, { toString() { return 1 } }].groupToMap(it => it).size; // => 3 |
This has already been discussed at some length in #3. For the If you want entries, make a |
group
andgroupToMap
why not merge into one api, I think the implementation of the latter includes the formerThe text was updated successfully, but these errors were encountered: