smartprocure / futil-js

F(unctional) util(ities). Resistance is futile.
https://smartprocure.github.io/futil-js/
MIT License
967 stars 68 forks source link

Add new cartesianProduct array util #430

Closed stellarhoof closed 8 months ago

stellarhoof commented 8 months ago

Add new cartesianProduct array util. Ex: cartesianProduct([1,2], [3,4]) => [[1,3], [1,4], [2,3], [2,4]]

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 84d9fc95cf84ccaa290d4e728c8b83e6daaf873e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------- | ----- | | futil-js | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 8 months ago
Fails
:no_entry_sign: The changelog has not been updated. Please update the changelog.
:no_entry_sign: The version was not updated. Please update the version.
Warnings
:warning: The README has not been updated. Please update the README.
:warning: Could not run `duti:fix` command successfully
Messages
:book: Could not find any browser results.

Generated by :no_entry_sign: dangerJS against 84d9fc95cf84ccaa290d4e728c8b83e6daaf873e

github-actions[bot] commented 8 months ago

Coverage after merging feature/cartesian-product into master will be

83.98%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
.yarn/releases
   yarn-3.6.0.cjs11.87%9.15%19.16%50.14%10, 10, 10, 10, 10, 10, 100–101, 101, 101, 103, 103, 103, 103, 103, 103, 103, 103, 106–107, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 111, 111, 111, 115, 115, 115, 117–118, 118, 118–119, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 120, 122, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,