Description
unique() algorithm is not correct in pivot.js file.
The algo is like this:
let unique = function (list) { for (let i = 0; i < list.length; i++) { for (let j = i + 1; j < list.length; j++) { if (angular.equals(list[i], list[j])) { list.splice(j, 1) } } } }
But it's not correct. If the input is [2, 3, 3, 3, 4, 5] and the output will be [2, 3, 3, 4, 5]. The number 3 is still duplicated.