这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jakes44
Copy link
Contributor

@jakes44 jakes44 commented Mar 29, 2016

Lets you see if a string has the letters to spell "thirteen" and checks to see if a string is an anagram of thirteen.

Also fixed a comment

index.js Outdated
},
anagramOf:{
thirteen:function(){
if(x.toLowerCase().split('').sort().join('').trim() == "thirteen".split('').sort().join('').trim()){
Copy link
Contributor

Choose a reason for hiding this comment

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

you can just:

anagramOf:{
    thirteen:function(){
        return x.toLowerCase().split('').sort().join('').trim() == "thirteen".split('').sort().join('').trim();
    }
}

@fullstackhacker
Copy link
Contributor

Also needs a rebase.

@jakes44 jakes44 closed this Mar 29, 2016
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