Skip to content

Conversation

@wruth
Copy link
Contributor

@wruth wruth commented Jan 15, 2016

… of items keys

Hi Loiane. I'm enjoying your book! I'd like to suggest a modification to your Set implementation in chapter 6. Your values() method is really returning the keys to the items object. One consequence of this is that String values are being returned in the array, since JS coerced the numerical values to Strings in order to use them as keys in the items object. It might be better to return the actual numeric values? Hence my PR.

@loiane
Copy link
Owner

loiane commented Jan 17, 2016

Thanks for the PR!

loiane added a commit that referenced this pull request Jan 17, 2016
update Set values() and valuesLegacy() to return items values instead…
@loiane loiane merged commit 2966435 into loiane:second-edition Jan 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants