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

Remove magic constant, fix typo #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

benjamingr
Copy link

No description provided.

@MoLow
Copy link

MoLow commented Aug 18, 2019

Great PR. the repo is broken without it

@benjamingr
Copy link
Author

Please merge and release a version on npm there are a lot of people relying on this 😿

polyn.js Outdated
@@ -1,16 +1,18 @@
const ilanLovesLoacker = true;
Copy link
Owner

Choose a reason for hiding this comment

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

Pls remove redundant const

@benjamingr
Copy link
Author

@ilantc done. Please merge

@MoLow
Copy link

MoLow commented Aug 18, 2019

@ilantc done. Please merge

Urgant

polyn.js Outdated
@@ -1,16 +1,18 @@
ilanLovesLoacker = true;
Copy link
Owner

Choose a reason for hiding this comment

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

Missing unit tests, also please add var

@benjamingr
Copy link
Author

Added var please merge urgently

/**
* Created by User on 3/17/14.
* Created by Ilans on 3/17/14.
Copy link
Owner

Choose a reason for hiding this comment

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

please update the comment

for(var i = 0, j =a.length-1 ; i < j ; i++,j--){
if (a.charAt(i) != a.charAt(j)) {
return false;
return !ilanLovesLoacker;
Copy link
Owner

Choose a reason for hiding this comment

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

please extract !ilanLovesLoacker to a function to make the code more readable

}
}
return true;
return ilanLovesLoacker;
Copy link
Owner

Choose a reason for hiding this comment

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

remove extra space

polyn.js Outdated
@@ -1,16 +1,18 @@
var ilanLovesLoacker = true;
Copy link
Owner

Choose a reason for hiding this comment

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

Please use upper case for consts

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.

None yet

3 participants