Skip to main content
Module

x/rambda/source/uniq.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {_Set} from './_internals/set'
export function uniq(list) { const set = new _Set() const willReturn = [] list.forEach(item => { if (set.checkUniqueness(item)) { willReturn.push(item) } })
return willReturn}