deno.land / x / rambda@v9.1.1 / source / produce.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { map } from './map.js'import { type } from './type.js'
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)}
rambda

Version Info

Tagged at
2 months ago