generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
As I mentioned in plenary, I would like to better understand the motivation for supporting things other than the basic Object.keys(obj).length (and for that motivation to be documented in the readme). I don't think this proposal is ready for stage 2 until that's been done.
There's a few examples in this comment. Those examples are, in order:
- devtools
- a legitimate use to know if an object has symbol keys (though not the count)
- devtools
- devtools
- Babel's object spread helper, which would be adequately served by
getOwnPropertyDescriptors - just the second example again, minified and vendored
- devtools
- an equality method, which is actually using the full list of properties anyway
- TypeScript's object spread helper, which would be adequately served by
getOwnPropertyDescriptors - Angular's
Object.definePropertiespolyfill
This list of examples is not, in itself, convincing to me. Perhaps there are others, or some description of a case can we all agree is sufficiently common to warrant additional functionality?
Metadata
Metadata
Assignees
Labels
No labels