loading...

Discussion on: Tackling Algorithms: Counting Unique Values

Collapse
anndd profile image
Anna Su**

... and a lazy solution would be to use underscorejs:

_.uniq([1, 1, 1, 2, 3, 3]).length; //=> 3