dankogai/js-combinatorics — pull request #1 by vzvu3k6k (2013-03-09 12:03:03+00:00)
Title: Add missing var declaration

After executing `Combinatorics.combination(array, num).next()`, `result` leaks into global scope.

```js
var Combinatorics = require('./combinatorics.js').Combinatorics;
console.log(Combinatorics.combination([ 1, 2, 3 ], 2).next()); // [ 1, 2 ]
console.log(result); // [ 1, 2 ]
```