The lodash SortedUniq and vanilla js alternative
1 - The lodash sortedUniq method
The lodash sortedUniq method can be used to sort and remove copy values of an array by passing the array as the first and only argument. The result that is returned is an array that contains only uniq values and it is sorted from lowest value to highest value.
2.2 - Using array reduce and array some
3 - Conclusion