Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map.prototype.entries() method not implemented #846

Closed
croraf opened this issue Oct 11, 2020 · 1 comment · Fixed by #847
Closed

Map.prototype.entries() method not implemented #846

croraf opened this issue Oct 11, 2020 · 1 comment · Fixed by #847
Labels
enhancement New feature or request

Comments

@croraf
Copy link
Contributor

croraf commented Oct 11, 2020

ECMASCript feature
https://www.ecma-international.org/ecma-262/11.0/index.html#sec-map.prototype.entries
-->

Example code

const map1 = new Map();

map1.set('0', 'foo');
map1.set(1, 'bar');

const iterator1 = map1.entries();

console.log(iterator1.next().value);
// expected output: ["0", "foo"]

console.log(iterator1.next().value);
// expected output: [1, "bar"]
@croraf croraf added the enhancement New feature or request label Oct 11, 2020
@croraf
Copy link
Contributor Author

croraf commented Oct 11, 2020

I'm trying some implementation. I basically duplicated the ArrayIterator functionality, and tried to fit in the missing types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant