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

zipObj-spec.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {zipObj} from 'rambda'
describe('R.zipObj', () => { it('happy', () => { // this is wrong since 24.10.2020 `@types/ramda` changes const result = zipObj(['a', 'b', 'c', 'd'], [1, 2, 3]) ;[result.a, result.b, result.c, result.d] // $ExpectType number[] }) it('imported from @types/ramda', () => { const result = zipObj(['a', 'b', 'c'], [1, 2, 3]) const curriedResult = zipObj(['a', 'b', 'c'])([1, 2, 3]) ;[result.a, result.b, result.c] // $ExpectType number[] ;[curriedResult.a, curriedResult.b, curriedResult.c] // $ExpectType number[] })})
rambda

Version Info

Tagged at
2 months ago