You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Tested in both Node 22 and latest Edgeconstm=newMap([[1,2],[3,4]]);constkeys=m.keys();// IterableIterator<number>constiter=keys.map(n=>n*100);// Property 'map' does not exist on type 'IterableIterator<number>'.ts(2339)constval=iter.next();console.log(val);// {value: 100, done: false}
⚙ Compilation target
ESNext
⚙ Library
n/a
Missing / Incorrect Definition
IterableIterator should have map/filter/etc.
Sample Code
Documentation Link