Skip to content

Commit 7b96995

Browse files
committed
feat: Create translation 5-network/01-fetch/01-fetch-users/task
1 parent 067602f commit 7b96995

File tree

1 file changed

+8
-8
lines changed
  • 5-network/01-fetch/01-fetch-users

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Fetch users from GitHub
1+
# Отримати користувачів з GitHub
22

3-
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.
3+
Створіть асинхронну функцію `getUsers(names)`, яка приймає параметром масив логінів користувачів GitHub, отримує дані з GitHub та повертає масив користувачів GitHub з інформацією про них.
44

5-
The GitHub url with user information for the given `USERNAME` is: `https://api.github.com/users/USERNAME`.
5+
Посилання на Github з інформацією про користувача за заданим `USERNAME`: `https://api.github.com/users/USERNAME`.
66

7-
There's a test example in the sandbox.
7+
У пісочниці є приклад тесту.
88

9-
Important details:
9+
Важливі нюанси:
1010

11-
1. There should be one `fetch` request per user.
12-
2. Requests shouldn't wait for each other. So that the data arrives as soon as possible.
13-
3. If any request fails, or if there's no such user, the function should return `null` in the resulting array.
11+
1. Для кожного користувача повинен бути зроблений один запит `fetch`.
12+
2. Запити не повинні чекати один одного. Це дозволяє даним надходити якнайшвидше.
13+
3. Якщо будь-який запит не вдасться або користувача не існує, функція повинна повернути `null` у вихідному масиві.

0 commit comments

Comments
 (0)