deno.land / x / rambda@v9.1.1 / src / uniq.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { _Set } from './_internals/set.js'
export function uniq(list){ const set = new _Set() const willReturn = [] list.forEach(item => { if (set.checkUniqueness(item)){ willReturn.push(item) } })
return willReturn}
rambda

Version Info

Tagged at
2 months ago