Skip to main content
Module

x/rambda/src/ap.js

Faster and smaller alternative to Ramda
Latest
File
export function ap(functions, input){ if (arguments.length === 1){ return _inputs => ap(functions, _inputs) }
return functions.reduce((acc, fn) => [ ...acc, ...input.map(fn) ], [])}