deno.land / x / rambda@v9.1.1 / src / when.js
123456789101112import { curry } from './curry.js'
function whenFn( predicate, whenTrueFn, input){ if (!predicate(input)) return input
return whenTrueFn(input)}
export const when = curry(whenFn)
Version Info