Skip to main content
Module

x/lodash_es/mod.ts>ary

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

Creates a function that invokes func, with up to n arguments, ignoring any additional arguments.

Examples

_.map(['6', '8', '10'], _.ary(parseInt, 1)); // => [6, 8, 10]

Parameters

func

The function to cap arguments for.

n
guard