Skip to content
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

Решение в задании требует ещё непройденного материала #131

Closed
ssssank opened this issue Jan 13, 2023 · 1 comment · Fixed by #133

Comments

@ssssank
Copy link
Contributor

ssssank commented Jan 13, 2023

В уроке https://code-basics.com/ru/languages/typescript/lessons/anonymous-functions в решении используется указание типа массиваnumber[], но массивы объясняются только в следующем уроке

@reznikovAndrey
Copy link
Contributor

reznikovAndrey commented Jan 13, 2023

Переписал с использованием анонимной функции (у нас же урок про них) + просто убрал тип возвращаемого значения из функции.

Получилось по аналогии с примером из теории за тем исключением, что в теории используется .map(), а в решении учителя - .filter()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants