Latest
function unary
import { unary } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/function.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.