godash icon indicating copy to clipboard operation
godash copied to clipboard

Add uniq function

Open ImShakthi opened this issue 5 years ago • 1 comments

Uniq will return the unique set of elements in the given array

API

input := []int{1,1,2,2,3,4,3}
var output []int

godash.Uniq(input, &output)

fmt.Println(output)

// Output: [1 2 3 4]

ImShakthi avatar Oct 14 '19 12:10 ImShakthi

@aswinkarthik I will work on this issue

ImShakthi avatar Oct 14 '19 12:10 ImShakthi