Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for Iterator Helpers (now stage 3) #59568

Copy link
Copy link
@sdegutis

Description

@sdegutis
Issue body actions

⚙ Compilation target

ESNext

⚙ Library

n/a

Missing / Incorrect Definition

IterableIterator should have map/filter/etc.

Sample Code

// Tested in both Node 22 and latest Edge

const m = new Map([[1, 2], [3, 4]]);
const keys = m.keys(); // IterableIterator<number>
const iter = keys.map(n => n * 100);
// Property 'map' does not exist on type 'IterableIterator<number>'.ts(2339)

const val = iter.next();
console.log(val);
// {value: 100, done: false}

Documentation Link

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdAn existing issue was already created

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.