--- title: Department Numbers id: 59f40b17e79dbf1ab720ed7a challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof combinations === "function", "combinations should be a function.");' - text: '' testString: 'assert(Array.isArray(combinations([1, 2, 3], 6)), "combinations([1, 2, 3], 6) should return an Array.");' - text: '' testString: 'assert(combinations(nums, total).length === len, "combinations([1, 2, 3, 4, 5, 6, 7], 12) should return an array of length 14.");' - text: '' testString: 'assert.deepEqual(combinations(nums, total), result, "combinations([1, 2, 3, 4, 5, 6, 7], 12) should return all valid combinations.");' ```
## Challenge Seed
```js function combinations (possibleNumbers, total) { // Good luck! return true; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```