smart-combin:获取元素并生成所有可能的组合

时间:2024-06-10 22:58:12
【文件属性】:

文件名称:smart-combin:获取元素并生成所有可能的组合

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-10 22:58:12

JavaScript

智能组合 获取元素并生成所有可能的组合 用法 npm install smart-combin var smartCombin = require ( 'smart-combin' ) ; // From a total of seven elements i want all combinations of groups having 5 elements. var allElements = [ "44" , "16" , "49" , "53" , "04" , "52" , "39" ] ; var outputList = smartCombin . combine ( allElements , 5 ) ; outputList . forEach ( function ( item ) { console . log ( item [ 0 ] + "," + it


【文件预览】:
smart-combin-master
----example()
--------example.js(385B)
----package.json(643B)
----smartcombin.js(2KB)
----LICENSE(1KB)
----.gitignore(526B)
----README.md(538B)

网友评论