Skip to main content
Module

x/rambda/zipObj-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
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 // $ExpectType { readonly b: number; readonly a: number; readonly c: number; readonly d: 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 // $ExpectType { readonly b: number; readonly a: number; readonly c: number; } curriedResult // $ExpectType { readonly b: number; readonly a: number; readonly c: number; } })})