-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: master
Are you sure you want to change the base?
Conversation
Great PR. the repo is broken without it |
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls remove redundant const
@ilantc done. Please merge |
Urgant |
polyn.js
Outdated
@@ -1,16 +1,18 @@ | |||
ilanLovesLoacker = true; |
There was a problem hiding this comment.
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
Added var please merge urgently |
/** | ||
* Created by User on 3/17/14. | ||
* Created by Ilans on 3/17/14. |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
No description provided.