deno.land / x / rambda@v9.1.1 / source / uniqBy.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { _Set } from '../src/_internals/set.js'
export function uniqBy(fn, list){ if (arguments.length === 1){ return _list => uniqBy(fn, _list) } const set = new _Set()
return list.filter(item => set.checkUniqueness(fn(item)))}
rambda

Version Info

Tagged at
2 months ago