• This method is like _.tap except that it returns the result of interceptor.

    Type Parameters

    • T
    • TResult

    Parameters

    • value: T

      The value to provide to interceptor.

    • interceptor: (value: T) => TResult

      The function to invoke.

    Returns TResult

    Returns the result of interceptor.