Module

x/rambda/rambda.js>tap

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