Skip to content

Solution#204

Open
bogdandobak wants to merge 2 commits intomate-academy:masterfrom
bogdandobak:develop
Open

Solution#204
bogdandobak wants to merge 2 commits intomate-academy:masterfrom
bogdandobak:develop

Conversation

@bogdandobak
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@misha-lysak misha-lysak left a comment

Choose a reason for hiding this comment

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

🚀

Comment on lines +7 to +19
[].__proto__.sort2 = function(compareFunction = (a, b) => {
const stringA = String(a);
const stringB = String(b);

if (stringA > stringB) {
return 1;
} else if (stringA === stringB) {
return 0;
}

return -1;
}) {
let count;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

объявлять эту функцию прям в аргументах не очень читабельно

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