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

x/rambda/rambda.js>tap

Faster and smaller alternative to Ramda
Latest
function tap
import { tap } from "https://deno.land/x/rambda@9.4.1/rambda.js";

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