Skip to main content
Module

x/rambda/zipWith-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {zipWith} from 'rambda'
const list1 = [1, 2]const list2 = [10, 20, 30]
describe('R.zipWith', () => { it('happy', () => { const result = zipWith( (x, y) => { x // $ExpectType number y // $ExpectType number return `${x}-${y}` }, list1, list2 )
result // $ExpectType readonly string[] }) it('curried', () => { const result = zipWith((x, y) => { x // $ExpectType unknown y // $ExpectType unknown return `${x}-${y}` })(list1, list2)
result // $ExpectType readonly string[] })})