deep-combination
Generate pair of all combination with type-safe.
Install
npm install deep-combination
Usage
; ;;; .addDimentionbrowsers .addDimentiondevices .addDimentionlocales; // You can get pairs via for-of statementfor of combinator // Or you can get list of pairs from Array.from;// => [['chrome', 'laptop', 'en-US'], ['chrome', 'laptop', 'ja-JP'], ...]
Limitation
Currently, type definition supports less than 20 dimentions.
Runtime is OK but type is not recognized.
Contribution
- Fork this repository
- Write your code
- Run tests
- Create pull request to master branch
Development
git clone git@github.com:Leko/deep-combination.git
cd deep-combination
npm i
License
This package under MIT license.