JSPM

Found 34 results for arity

util-arity

Set the length of a function.

  • v1.1.0
  • 108.10
  • Published

arity-n

Wraps a function with a function of a sertain arity.

  • v1.0.4
  • 94.85
  • Published

functional.js

A functional JavaScript library that facilitates currying and point-free programming, with optional lambda expressions.

  • v0.8.0
  • 64.65
  • Published

@ndhoule/arity

Wrap a function in a function that expects a given number of arguments.

  • v2.0.0
  • 58.43
  • Published

@thi.ng/defmulti

Dynamic, extensible multiple dispatch via user supplied dispatch function.

  • v3.0.83
  • 53.62
  • Published

adhere

Wrap methods preserving arity.

  • v1.2.3
  • 44.75
  • Published

varity

A simple wrapper to make variable length arities easier to manage

  • v1.0.4
  • 43.19
  • Published

extra-async-function.web

An async function is a function that delivers its result asynchronously (through Promise) {web}.

  • v1.2.1
  • 40.67
  • Published

extra-function

A function is a set of statements that performs a task or calculates a value.

  • v1.3.3
  • 39.48
  • Published

rarity

Control function arity.

  • v2.1.2
  • 38.40
  • Published

extra-async-function

An async function is a function that delivers its result asynchronously (through Promise).

  • v1.2.1
  • 33.52
  • Published

@stdlib/utils-nary-function

Create a function that invokes a provided function with a specified number of arguments.

  • v0.2.2
  • 32.81
  • Published

extra-function.web

A function is a set of statements that performs a task or calculates a value {web}.

  • v1.3.3
  • 32.56
  • Published

garity

coroutine(generator).length === generator.length

  • v0.0.1-6
  • 18.65
  • Published

nary

Enforce function arity in JavaScript

  • v2.0.0
  • 18.65
  • Published

arity-of

Exposes max arity and other metadata for JS functions

  • v1.0.2
  • 18.61
  • Published

true-arity

Returns function arity (number of possible arguments) supports all ES6 features including argument destructor and default.

  • v0.1.0
  • 18.31
  • Published

dyn-curry

Dynamic, fully controlled and configurable currying

  • v0.1.0
  • 18.17
  • Published

garde

Utility function for dealing with function arguments

  • v0.1.0
  • 17.25
  • Published

arity

Makes sure that JavaScript functions are called with the expected number and/or types of parameters.

  • v1.3.2
  • 17.24
  • Published

ary

Clips function argument lengths.

  • v0.1.0
  • 16.27
  • Published

arity-constructor

A utility for construction objects with runtime arity

    • v0.1.3
    • 15.00
    • Published

    yudarity

    Returns function arity (number of possible arguments) supports all ES6 features including argument destructor and default.

    • v0.1.3
    • 14.85
    • Published

    restrictary

    Higher-order functions that restrict the arity of a function.

    • v0.0.1
    • 13.62
    • Published

    mk-fn

    Make functions with a specified length.

    • v1.0.1
    • 12.68
    • Published

    mrlambda

    A functional JavaScript library that facilitates currying and point-free programming, with optional lambda expressions.

    • v0.7.1
    • 12.26
    • Published

    unarify

    Function wrapper that returns an array of functions that all have single arity, which invokes the original function when all the later functions have been called

      • v0.1.0
      • 10.91
      • Published

      curry-arity

      Tiny curry() and curryN() functions. Resulting functions will have the correct arity (length).

      • v1.0.0
      • 9.62
      • Published

      guess-function-max-arity

      Guess the maximum number of arguments the given function will consume.

      • v1.0.0
      • 4.81
      • Published