Skip to main content
Module

x/rambda/produce.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { map } from './map'import { type } from './type'
export function produce(rules, input){ if (arguments.length === 1){ return _input => produce(rules, _input) }
return map(singleRule => type(singleRule) === 'Object' ? produce(singleRule, input) : singleRule(input), rules)}