Create the Cartesian product using Typescript
Today I had to create an array of all possible combinations of multiple arrays. In other words, I had to calculate the Cartesian product. Below you’ll find my implementation and test cases.
Implementation:
Tests:
If you have any questions, let me know in the comments! If this post has helped you, let me know by giving it a thumbs up.