Skip to content
On this page

uniq

Create an array with duplicate elements removed.

Example

uniq([1, 2, 1, 1, 2, 3, 4]) // => [1, 2, 3, 4]

Playground

const { uniq } = require('rhodash')
uniq([1, 2, 1, 1, 2, 3, 4]) // => [1, 2, 3, 4]