
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
compute-product
Advanced tools
Computes the cartesian product of the given list of subsets.
According to the performance tests with (matcha)[https://www.npmjs.com/package/matcha], it's faster than (cartesian-product)[https://www.npmjs.com/package/cartesian-product] if you work with non-integer subsets like string or object arrays.
It's even faster when it's written in es5 but I wanted to implement it in es6.
$ npm i -g compute-product
import product from 'compute-product'
product([[1, 2], [4, 5]]) // [[1, 4], [1, 5], [2, 4], [2, 5]]
$ npm run bench
$ npm test
$ npm run build
If you have any idea about how to make it faster, pull requests are welcome. ;)
(MIT)[LICENSE]
FAQs
Computes the cartesian product of the given list of sets.
We found that compute-product demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.