tc39 / proposal-built-in-modules

BSD 2-Clause "Simplified" License
892 stars 25 forks source link

Minor error in example used in the readme file. #21

Closed jaufgang closed 5 years ago

jaufgang commented 5 years ago

in the Generic Functions section of the README.md file, you have

const mp = new Map([["e", 8], ["n", 9], ["z", 0], ["o", 1], ["t", 2]);

which has 5 elements, the last one being ["t",2], however the examples for the len and map functions reflect a value for mp that only has 4 elements and is missing the final element t .

I think this is just a minor typo, but it jumped out at me and should be fixed.

littledan commented 5 years ago

Thanks for pointing this out. PRs welcome.

Felttrip commented 5 years ago

Looks like there is a PR open for this https://github.com/tc39/proposal-javascript-standard-library/pull/5

jaufgang commented 5 years ago

resolved by #5