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

feat(items): add support for arrays #7

Merged
merged 1 commit into from
Aug 29, 2016
Merged

Conversation

kentcdodds
Copy link
Owner

With this commit you can now specify an array of items to rank and those items will be checked individually (before, they were joined with a comma via toString, which is sub optimal).

@conorhastings, I need this for what I'm working on right now, so if you could review this really quick that'd be awesome. If you don't have time no worries. I'll probably not need it for an hour. If you don't get to it I'll just merge it myself :)

With this commit you can now specify an array of items to rank and those
items will be checked individually (before, they were joined with a
comma via toString, which is sub optimal).
@kentcdodds
Copy link
Owner Author

LGTM

@kentcdodds
Copy link
Owner Author

Also, it looks like lgtm.co is working now! 🎉

@codecov-io
Copy link

Current coverage is 100% (diff: 100%)

Merging #7 into master will not change coverage

@@           master    #7   diff @@
===================================
  Files           1     1          
  Lines          72    73     +1   
  Methods         0     0          
  Messages        0     0          
  Branches        0     0          
===================================
+ Hits           72    73     +1   
  Misses          0     0          
  Partials        0     0          

Powered by Codecov. Last update 17d5e59...1cfbe96

@conorhastings
Copy link
Collaborator

@kentcdodds looks good to me! This is a pretty cool feature!

@conorhastings conorhastings merged commit 2233ff4 into master Aug 29, 2016
@conorhastings conorhastings deleted the pr/handle-arrays branch August 29, 2016 20:09
{favoriteIceCream: ['mint', 'chocolate']},
],
},
'when using arrays of values, when things are equal, the one with the higher index wins': {
Copy link
Owner Author

Choose a reason for hiding this comment

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

This kinda just fell out of the implementation. Pretty solid actually 👍

@kentcdodds
Copy link
Owner Author

Thanks @conorhastings!

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