Function: tap

tap<T>(arg, proc): T

Calls callback with the first argument, and returns it.

Type parameters

Name
T

Parameters

NameType
argT
proc(arg: T) => unknown

Returns

T