Module

x/rambda/index.d.ts>tap

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

It applies function fn to input x and returns x.

One use case is debugging in the middle of R.compose.

Parameters

fn: (x: T) => void
input: T

Parameters

fn: (x: T) => void

Returns

(input: T) => T