Skip to main content
Module

x/rambda/immutable.d.ts>tap

Faster and smaller alternative to Ramda
Go to Latest
function tap
import { tap } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It applies function fn to input x and returns x.

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

Parameters

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

Parameters

fn: (x: T) => void

Returns

(input: T) => T