Function: tap()

tap<T>(arg, proc): T

Calls callback with the first argument, and returns it.

Type parameters

Type parameter
T

Parameters

ParameterType
argT
proc(arg) => unknown

Returns

T