Skip to content

Commit

Permalink
написал функцию, которая преобразует имена пользователей в массив
Browse files Browse the repository at this point in the history
  • Loading branch information
Данейкин Илья Вячеславович authored and Данейкин Илья Вячеславович committed Sep 30, 2024
1 parent 413f346 commit c17c195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 3-module/1-task/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
function namify(users) {
// ваш код...
let names = [];
for (let user of users) {
names.push(user.name);
};
return names;
}

0 comments on commit c17c195

Please sign in to comment.