/** * Invokes a function with the given value, then returns the value. * * @since 1.0.0 * * @param value (*): The value to provide to interceptor. * @param interceptor (Function): The function to invoke. * * @returns (*): Returns value. * * @example * * const data = [1, 2, 3]; * * const tappedData = tap2(data, (array: number[]) => { * // Mutate input array. * array.push(100); * }) * .fn(concat, [4]) * .fn(concat, [5]) * .value(); * * => [1, 2, 3, 100, 4, 5] */ declare const tap2: (value: any, interceptor: Function) => { fn(func: Function, ...args: any): any; value: () => any; }; export default tap2;