Skip to content

tap

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/utils/fp.ts

Calls callback with the first argument, and returns it.

Signature

ts
function tap(arg: T, proc: (arg: T) => unknown): T

Parameters

NameType
argT
proc(arg: T) => unknown

Returns: T

Was this page helpful?

Download as PDF