{"id":22945097,"url":"https://github.com/seregpie/lodash.product","last_synced_at":"2025-08-12T22:33:17.963Z","repository":{"id":57290524,"uuid":"77245096","full_name":"SeregPie/lodash.product","owner":"SeregPie","description":"Calculates the Cartesian product between multiple collections.","archived":false,"fork":false,"pushed_at":"2022-12-18T12:21:52.000Z","size":17,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-12T01:46:31.038Z","etag":null,"topics":["array","cartesian-product","collection","combinatorics","iterable","javascript","lodash","mixin","plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeregPie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-23T18:57:06.000Z","updated_at":"2023-12-11T09:15:55.000Z","dependencies_parsed_at":"2023-01-29T19:00:17.865Z","dependency_job_id":null,"html_url":"https://github.com/SeregPie/lodash.product","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.product","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.product/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.product/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.product/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeregPie","download_url":"https://codeload.github.com/SeregPie/lodash.product/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229715967,"owners_count":18113020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array","cartesian-product","collection","combinatorics","iterable","javascript","lodash","mixin","plugin"],"created_at":"2024-12-14T14:29:40.833Z","updated_at":"2024-12-14T14:29:41.294Z","avatar_url":"https://github.com/SeregPie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lodash.product\n\n`_.product(...collections)`\n\nCalculates the Cartesian product between multiple collections.\n\n| argument | description |\n| ---: | :--- |\n| `collections` | Collections to calculate the Cartesian product from. |\n\nReturns a new array.\n\n## setup\n\n### npm\n\n```shell\nnpm i lodash.product\n```\n\n### ES module\n\n```javascript\nimport 'lodash.product';\nimport _ from 'lodash';\n```\n\n### Node\n\n```javascript\nrequire('lodash.product');\nlet _ = require('lodash');\n```\n\n### browser\n\n```html\n\u003cscript src=\"https://unpkg.com/lodash\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/lodash.product\"\u003e\u003c/script\u003e\n```\n\n## usage\n\n```javascript\nlet product = _.product([false, true], ['a', 'b', 'c'], [{}]);\n// =\u003e [[false, 'a', {}], [false, 'b', {}], [false, 'c', {}], [true, 'a', {}], [true, 'b', {}], [true, 'c', {}]]\n```\n\n---\n\n```javascript\nlet array = [1, 2, 3];\nlet product = _.product(array, array);\n// =\u003e [[1, 1], [1, 2], [1, 3], [2, 1], [2, 2], [2, 3], [3, 1], [3, 2], [3, 3]]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Flodash.product","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseregpie%2Flodash.product","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Flodash.product/lists"}