Module

x/lodash_es/src/unary.js>default

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

Creates a function that accepts up to one argument, ignoring any additional arguments.

Examples

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

Parameters

func

The function to cap arguments for.