mode
should be a function.
testString: assert(typeof mode === 'function');
- text: mode([1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17])
should equal [6]
testString: assert.deepEqual(mode(arr1), [6]);
- text: mode([1, 2, 4, 4, 1])
should equal [1, 4]
.
testString: assert.deepEqual(mode(arr2).sort(), [1, 4]);
```