Skip to content

Add uniq function #18

Open
Open
@ImShakthi

Description

@ImShakthi

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions