en.javascript.info/5-network/01-fetch/01-fetch-users/task.md
Vim Shah 849d7a3ae1
Update task.md
fix typo
2019-08-22 16:13:24 -07:00

594 B

Fetch users from GitHub

Create an async function getUsers(names), that gets an array of GitHub logins, fetches the users from GitHub and returns an array of GitHub users.

The GitHub url with user information for the given USERNAME is: https://api.github.com/users/USERNAME.

There's a test example in the sandbox.

Important details:

  1. There should be one fetch request per user.
  2. Requests shouldn't wait for each other. So that the data arrives as soon as possible.
  3. If any request fails, or if there's no such user, the function should return null in the resulting array.