2
I'm writing a function that receives an array and returns an object with the count of unique values, pretty much like other questions here or in StackExchange. Except that in my case, this array may contain a nested array, like:
var array = [1, 2, 'a', 'b', [3, 'c', 1], 'd', 2, 'b'];
Here is m...