UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

9 lines (7 loc) 193 B
import { take } from './take.js' export function zipWith(fn, x) { return y => take(x.length > y.length ? y.length : x.length)(x).map((xInstance, i) => fn(xInstance, y[i]), ) }