Skip to main content
Module

x/lodash_es/mod.ts>wrap

lodash for deno use
Latest
function wrap
import { wrap } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Creates a function that provides value to wrapper as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper. The wrapper is invoked with the this binding of the created function.

Examples

var p = .wrap(.escape, function(func, text) { return '' + func(text) + ''; });

p('fred, barney, & pebbles'); // => 'fred, barney, & pebbles'

Parameters

value

The value to wrap.

wrapper