This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Test to figure out combinations of at least two elements of provided array. | |
* | |
* by Sergei Sokolov, [email protected], 2015 April 27, St. Petersburg. | |
* Fiddle: http://jsfiddle.net/sergiks/2ojgqxk1/ | |
*/ | |
function comb(a) { | |
var l, cursor, mask, tail, out=[]; | |
l = a.length; | |
if( l<2 || l>32) { |
NewerOlder