deno.land / x / rambda@v9.1.1 / source / uniqWith-spec.ts

uniqWith-spec.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import {uniqWith} from 'rambda'
describe('R.uniqWith', () => { it('happy', () => { const list = [{a: 1}, {a: 1}]
const fn = (x: any, y: any) => x.a === y.a
const result = uniqWith(fn, list) result // $ExpectType { a: number; }[] })})
rambda

Version Info

Tagged at
2 months ago