Module

x/lodash_es/src/function.js>rest

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

Creates a function that invokes func with the this binding of the created function and arguments from start and beyond provided as an array.

Note: This method is based on the rest parameter.

Examples

var say = _.rest(function(what, names) { return what + ' ' + .initial(names).join(', ') + (.size(names) > 1 ? ', & ' : '') + _.last(names); });

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

Parameters

func

The function to apply a rest parameter to.

start