Module

x/lodash_es/src/thru.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/thru.js";

This method is like _.tap except that it returns the result of interceptor. The purpose of this method is to "pass thru" values replacing intermediate results in a method chain sequence.

Examples

_(' abc ') .chain() .trim() .thru(function(value) { return [value]; }) .value(); // => ['abc']

Parameters

value

The value to provide to interceptor.

interceptor

The function to invoke.