Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>tap

Faster and smaller alternative to Ramda
Go to Latest
function tap
import { tap } from "https://deno.land/x/rambda@9.2.1/mod.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