lodash provides a method _.uniq()for finding unique elements from an array, but the comparison function used is strict equality ===, while I want to use _.isEqual()one that satisfies:
_.isEqual([1, 2], [1, 2])
// true
Is there a way to accomplish _.uniq()using _.isEqual()without writing my own method?
source
share