We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
var combinations = require('combinations'); var arr = ['red', 'orange', 'yellow', 'green']; combinations(arr, 2, 2)
Yields 12 combinations, including some that have 3 elements. Was expecting an array of size 6, with each result having exactly 2 elements.
The text was updated successfully, but these errors were encountered:
Same here
Sorry, something went wrong.
if (got.length > 0 && got.length === max) { all[all.length] = got; } return;
Add this condition to solve your issue.
No branches or pull requests
Yields 12 combinations, including some that have 3 elements. Was expecting an array of size 6, with each result having exactly 2 elements.
The text was updated successfully, but these errors were encountered: