Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Should we create a null-prototype object? #13

Closed
theScottyJam opened this issue Aug 2, 2021 · 1 comment
Closed

Should we create a null-prototype object? #13

theScottyJam opened this issue Aug 2, 2021 · 1 comment

Comments

@theScottyJam
Copy link

Should the object returned by groupBy() have a null prototype? It could help add some safety when using the object returned by .groupBy() with unknown keys. Some of the value of this would be lessened if we provide a .groupByMap() function, as being discussed in #3, but it would still be useful either way.

@ljharb
Copy link
Member

ljharb commented Aug 2, 2021

Not just should, must. This was discussed in plenary; see #1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants