Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

computational-combinatorics/n-combinations

Repository files navigation

Set n-combinations for JavaScript. See docs.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {combinations} from '@combinatorics/n-combinations';
combinations("ABCD", 2); // AB AC AD BC BD CD

import {range} from '@iterable-iterator/range';
combinations(range(4), 3); // 012 013 023 123

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Morty Proxy This is a proxified and sanitized view of the page, visit original site.