Module

x/lodash_es/mod.ts>curryRight

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

This method is like _.curry except that arguments are applied to func in the manner of _.partialRight instead of _.partial.

The _.curryRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for provided arguments.

Note: This method doesn't set the "length" property of curried functions.

Examples

var abc = function(a, b, c) { return [a, b, c]; };

var curried = _.curryRight(abc);

curried(3)(2)(1); // => [1, 2, 3]

curried(2, 3)(1); // => [1, 2, 3]

curried(1, 2, 3); // => [1, 2, 3]

// Curried with placeholders. curried(3)(1, _)(2); // => [1, 2, 3]

Parameters

func

The function to curry.

arity
guard