Skip to content

solution#2758

Open
joanna-konopacka wants to merge 1 commit intomate-academy:masterfrom
joanna-konopacka:master
Open

solution#2758
joanna-konopacka wants to merge 1 commit intomate-academy:masterfrom
joanna-konopacka:master

Conversation

@joanna-konopacka
Copy link

No description provided.

Copy link

@Ivan-Shvorak Ivan-Shvorak left a comment

Choose a reason for hiding this comment

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

Approved. Everything is fine but please fix these small issues

[].__proto__.join2 = function (separator = ",") {
let str = "";

for (let i = 0; i <= this.length; i++) {

Choose a reason for hiding this comment

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

i <= this.length -> i < this.length

str += this[i];
}

if (i < this.length - 1) {

Choose a reason for hiding this comment

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

i < this.length - 1 -> i < this.length

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.

2 participants