Module

x/rambda/files/index.d.ts>when

Faster and smaller alternative to Ramda
Latest
function when
import { when } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts";

Parameters

predicate: (x: T) => boolean
whenTrueFn: (a: T) => U
input: T

Parameters

predicate: (x: T) => boolean
whenTrueFn: (a: T) => U

Returns

(input: T) => T | U

Parameters

predicate: (x: T) => boolean

Returns

((whenTrueFn: (a: T) => U) => (input: T) => T | U)