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

Больше деталей #3

Merged

Conversation

YouAreNotReady
Copy link
Contributor

@YouAreNotReady YouAreNotReady commented Nov 30, 2024

@keksobot keksobot changed the title Реализует создание тестовых данных Больше деталей Nov 30, 2024
keksobot pushed a commit that referenced this pull request Dec 1, 2024
@keksobot
Copy link
Contributor

keksobot commented Dec 1, 2024

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

js/main.js Show resolved Hide resolved
const generateCommentId = createIdGenerator(1, 750);

const createCommentObject = () => ({
id: generateCommentId(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в данный момент это у тебя не функция, а ты вызваешь функцией

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чтоб получить id у Array.from есть 2 аргумента
второй это индекс - его используй для ид что для постов, что для комментов

лишние функции генерации ид - удаляем

generatePhotoId
generatePhotoUrlId
generateCommentId
createIdGenerator

@keksobot keksobot merged commit b05ed32 into htmlacademy-javascript:master Dec 1, 2024
1 check failed
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.

3 participants