-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
issue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be addedtype: cleanup
Milestone
Description
Is your feature request related to a problem? Please describe.
After removing support for Internet Explorer (#6325) and updating the generated target to ES2015 (#6328) we can also remove ES5-specific code in favor of ES6 constructs without inducing bloat from overly aggressive polyfills.
This is a place to track which features we want to use, rationale for changes, and rationale for any old language features we continue to exclusively use.
Describe the solution you'd like
Update old code to use new features across the codebase, where those features are known to improve performance, size, or readability.
Describe alternatives you've considered
Stick with existing code, and use new features as we write new code.
Feature list
- Use
Mapsinstead ofObject.create(null) - array.includes is in ES2016
Convertarray.indexOf(a) !== -1toarray.includes(a) - Delete
object.inheritsandobject.mixin - Needs investigation Use default parameters
- Use
Sets
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
issue: feature requestDescribes a new feature and why it should be addedDescribes a new feature and why it should be addedtype: cleanup