Skip to content

Refactor extension proposals check to use Array.prototype.includes #334653

Description

Problem/Feature Description
In the extension proposal utility, the code currently uses existing.indexOf(e.id) === -1 to filter known extensions.

Proposed Solution
Replace existing.indexOf(e.id) === -1 with modern TypeScript/JavaScript syntax using !existing.includes(e.id) to improve code readability and maintainability.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions