Why isn’t this lodash uniq isSorted not working?

So, I would expect this to sort, but it isn’t.

_.uniq(array, [isSorted], [iteratee], [thisArg])


_.uniq([10,3,13,1,0,2], true);

I run that, and it doesn’t sort. I’d expect it to return: [0,1,2,3,10,13]

Source: New Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.