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

Never pick more items than is in the array #9

Merged
merged 1 commit into from
Nov 30, 2015

Conversation

timjrobinson
Copy link
Contributor

Currently if picks is greater than the array length it returns the array items + undefined for the extra items. This fixes that so that it returns the entire array shuffled if you pick too many items.

pazguille added a commit that referenced this pull request Nov 30, 2015
Never pick more items than is in the array
@pazguille pazguille merged commit 09ff9b4 into pazguille:master Nov 30, 2015
@timjrobinson timjrobinson deleted the dont-pick-past-end branch November 30, 2015 21:34
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