文件名称:Percom:没有依赖包来计算排列组合
文件大小:51KB
文件格式:ZIP
更新时间:2024-08-23 11:47:34
javascript npm-module permutations combinations calculation
珀康 组合和排列库 用法 $ npm i percom 1. 组合 const percom = require ( "percom" ) ; percom . com ( array , num ) ; //array => Target array (対象の配列) //num => Number to combine as combinations (組み合わせの数) 例子 const array = [ "A" , "B" , "C" ] ; const result1 = percom . com ( array , 2 ) ; //result1 = [ [ "A", "B" ], [ "A, "C ], [ "B", "C" ] ] const result2 = percom . com ( array , 1 ) ; //resul
【文件预览】:
Percom-master
----.travis.yml(70B)
----package.json(1KB)
----test()
--------index.spec.js(2KB)
----LICENSE(1KB)
----src()
--------index.js(412B)
--------permutation.js(1KB)
--------combination.js(1KB)
----.eslintrc.js(4KB)
----.gitignore(2KB)
----.prettierrc.js(229B)
----README.md(3KB)
----yarn.lock(104KB)