Skip to main content
Module

x/rambda/source/zipWith.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {curry} from './curry'import {take} from './take'
function zipWithFn(fn, x, y) { return take(x.length > y.length ? y.length : x.length, x).map( (xInstance, i) => fn(xInstance, y[i]) )}
export const zipWith = curry(zipWithFn)