Javascript Combination Method : <p>i need help to build function that gets two params: "chars", "combinationLength"
example: </p>

<pre><code> var chars = [1,2,3,4,5,6]; //can be also strings
 var combinationLength = 3;
 generateCombinations(chars, combinationLength){
 }
</code></pre>

<p>the output should be:
111
112
113
114
115
116
121
122
etc...</p>

<p>it means to take all the chars and create combinations,
hope i was clearly ;]</p>
