{"id":22945146,"url":"https://github.com/seregpie/lodash.multicombinations","last_synced_at":"2025-08-12T22:33:28.036Z","repository":{"id":123101132,"uuid":"269321841","full_name":"SeregPie/lodash.multicombinations","owner":"SeregPie","description":"Calculates all possible combinations with repetition of a certain size.","archived":false,"fork":false,"pushed_at":"2020-06-04T11:56:11.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-10T22:32:33.685Z","etag":null,"topics":["array","collection","combinatorics","lodash","mixin","multicombination"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-04T09:53:20.000Z","updated_at":"2024-01-09T09:23:17.000Z","dependencies_parsed_at":"2023-03-18T03:15:53.800Z","dependency_job_id":null,"html_url":"https://github.com/SeregPie/lodash.multicombinations","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"e0429ecc8211564a05d19a0f442dbfdefaed75ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.multicombinations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.multicombinations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.multicombinations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeregPie%2Flodash.multicombinations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeregPie","download_url":"https://codeload.github.com/SeregPie/lodash.multicombinations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229716021,"owners_count":18113029,"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","collection","combinatorics","lodash","mixin","multicombination"],"created_at":"2024-12-14T14:29:51.995Z","updated_at":"2024-12-14T14:29:52.509Z","avatar_url":"https://github.com/SeregPie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lodash.multicombinations\n\n`_.multicombinations(collection, n)`\n\nCalculates all possible combinations with repetition of a certain size.\n\n| argument | description |\n| ---: | :--- |\n| `collection` | A collection of distinct values to calculate the combinations from. |\n| `n` | The number of values to combine. |\n\nReturns a new array.\n\n## setup\n\n### npm\n\n```shell\nnpm i lodash.multicombinations\n```\n\n### ES module\n\n```javascript\nimport 'lodash.multicombinations';\nimport _ from 'lodash';\n```\n\n### Node\n\n```javascript\nrequire('lodash.multicombinations');\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.multicombinations\"\u003e\u003c/script\u003e\n```\n\n## usage\n\n```javascript\nlet multicombinations = _.multicombinations([0, 1], 3);\n// =\u003e [[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 1, 1]]\n```\n\n---\n\nAlso accepts array-like values.\n\n```javascript\nlet multicombinations = _('abcde').multicombinations(2).map(v =\u003e _.join(v, '')).value();\n// =\u003e ['aa', 'ab', 'ac', 'ad', 'ae', 'bb', 'bc', 'bd', 'be', 'cc', 'cd', 'ce', 'dd', 'de', 'ee']\n```\n\n## see also\n\n- [lodash.combinations](https://github.com/SeregPie/lodash.combinations)\n- [lodash.permutations](https://github.com/SeregPie/lodash.permutations)\n- [lodash.multipermutations](https://github.com/SeregPie/lodash.multipermutations)\n- [lodash.product](https://github.com/SeregPie/lodash.product)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Flodash.multicombinations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseregpie%2Flodash.multicombinations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseregpie%2Flodash.multicombinations/lists"}