_.tap(value, interceptor))
This method invokes interceptor
and returns value. The interceptor is invoked with one argument; (value)
. The purpose of this method is to "tap into" a method chain sequence in order to modify intermediate results.
Arguments
value (*)
: The value to provide to interceptor.
interceptor (Function)
: The function to invoke.
Returns
(*)
: Returns value.