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

symmetricDifference-spec.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import {symmetricDifference} from 'rambda'
describe('R.symmetricDifference', () => { it('happy', () => { const list1 = [1, 2, 3, 4] const list2 = [3, 4, 5, 6] const result = symmetricDifference(list1, list2)
result // $ExpectType number[] })
it('curried', () => { const list1 = [{id: 1}, {id: 2}, {id: 3}, {id: 4}] const list2 = [{id: 3}, {id: 4}, {id: 5}, {id: 6}] const result = symmetricDifference(list1)(list2)
result // $ExpectType { id: number; }[] })})
rambda

Version Info

Tagged at
2 months ago