Skip to content

fs_may19_olha#5

Closed
OlgaLyubicheva wants to merge 2 commits intomate-academy:masterfrom
OlgaLyubicheva:fs_may19_olha
Closed

fs_may19_olha#5
OlgaLyubicheva wants to merge 2 commits intomate-academy:masterfrom
OlgaLyubicheva:fs_may19_olha

Conversation

@OlgaLyubicheva
Copy link
Copy Markdown

No description provided.

Comment thread src/arrayMethodSort.js Outdated

if (arguments.length === 0) {
compare = sortLikeString;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

const compare = compareFunction || sortLikeString;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sortLikeString всегда будет true, а compareFunction принимать значение по ситуации (если undefined => false, другие => true) и останется только проверить является ли это "true" именно функцией. Понятно

Comment thread src/arrayMethodSort.js
Comment thread src/arrayMethodSort.js
Copy link
Copy Markdown
Contributor

@mgrinko mgrinko left a comment

Choose a reason for hiding this comment

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

Отличная работа!
Осталось чуть чуть подмарафетить

Copy link
Copy Markdown

@vpolets vpolets left a comment

Choose a reason for hiding this comment

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

👍Клас:)

@OlgaLyubicheva
Copy link
Copy Markdown
Author

спасибо :)

@OlgaLyubicheva OlgaLyubicheva closed this by deleting the head repository Jun 5, 2025
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