just-cartesian-product
Advanced tools
Comparing version 1.0.0 to 1.0.1
module.exports = cartesianProduct; | ||
/* | ||
cartesianProduct([[1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] | ||
cartesianProduct([[1, 2], ['a', 'b']]); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] | ||
cartesianProduct(); // throws | ||
@@ -6,0 +6,0 @@ */ |
{ | ||
"name": "just-cartesian-product", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cartesian product of arrays", | ||
@@ -23,2 +23,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -9,6 +9,6 @@ ## just-cartesian-product | ||
cartesianProduct([[1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] | ||
cartesianProduct([1, 2], ['a', 'b', 'c']); // [[1, 'a'], [1, 'b'], [1, 'c'], [2, 'a'], [2, 'b'], [2, 'c']] | ||
cartesianProduct([[]); // [] | ||
cartesianProduct([[1, 2], ['a', 'b']]); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] | ||
cartesianProduct([[1, 2], ['a', 'b', 'c']]); // [[1, 'a'], [1, 'b'], [1, 'c'], [2, 'a'], [2, 'b'], [2, 'c']] | ||
cartesianProduct([]); // [] | ||
cartesianProduct(); // throws | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2928