next-unique Unique for array based on next. installation npm install -S @jswork/next-unique usage import '@jswork/next-unique'; const array1 = [1,2,4,5,6,7,1,2]; nx.unique(array1); //[1,2,3,4,5,6,7] license Code released under the MIT license.