Skip to content

"filter" instead of "map" to get only an array with one item #7

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

Open
wants to merge 1 commit into
base: understanding-promises
Choose a base branch
from

Conversation

michielvanhoutte
Copy link

fix "requesting order with id 2 returns undefined"

in the original code, when xhr2.open("GET", "http://localhost:3000/orders/2")
=> "description" is a map with 4 items [,,"Billed",]
=> so first item description[0] in map is "undefined"

fix requesting order with id 2 returns undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant