Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding _.combine method that create all possible combinations from given arrays #1788
This pull request implements a feature I've been missing; it returns all possible combinations of elements from the given arrays. Here's an example:
Somewhat related to
I was surprised to find no previous discussions on this here or on Underscore-contrib - perhaps it's less useful than I thought? I've used it somewhat often, and as the code to perform it is rather messy, I thought it might be a good fit for inclusion.