JSPM

Found 35 results for arity

util-arity

Set the length of a function.

  • v1.1.0
  • 105.43
  • Published

arity-n

Wraps a function with a function of a sertain arity.

  • v1.0.4
  • 95.54
  • Published

@ndhoule/arity

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

  • v2.0.0
  • 66.93
  • Published

functional.js

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

  • v0.8.0
  • 64.04
  • Published

@thi.ng/defmulti

Dynamic, extensible multiple dispatch via user supplied dispatch function.

  • v3.0.75
  • 52.21
  • Published

varity

A simple wrapper to make variable length arities easier to manage

  • v1.0.4
  • 44.86
  • Published

adhere

Wrap methods preserving arity.

  • v1.2.3
  • 42.50
  • Published

rarity

Control function arity.

  • v2.1.2
  • 34.35
  • Published

@stdlib/utils-nary-function

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

  • v0.2.2
  • 31.80
  • Published

extra-function

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

  • v1.3.3
  • 25.51
  • Published

extra-async-function

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

  • v1.2.1
  • 23.29
  • Published

extra-function.web

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

  • v1.3.3
  • 22.48
  • Published

extra-async-function.web

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

  • v1.2.1
  • 21.25
  • Published

restrictary

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

  • v0.0.1
  • 18.00
  • Published

arity

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

  • v1.3.2
  • 12.59
  • Published

curry-arity

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

  • v1.0.0
  • 10.11
  • Published

arity-constructor

A utility for construction objects with runtime arity

    • v0.1.3
    • 9.85
    • Published

    nary

    Enforce function arity in JavaScript

    • v2.0.0
    • 9.85
    • Published

    arify

    JavaScript function overloading. Let your function focus on its function.

    • v0.7.0
    • 9.69
    • Published

    garde

    Utility function for dealing with function arguments

    • v0.1.0
    • 7.68
    • Published

    true-arity

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

    • v0.1.0
    • 7.39
    • Published

    arity-of

    Exposes max arity and other metadata for JS functions

    • v1.0.2
    • 6.49
    • Published

    ary

    Clips function argument lengths.

    • v0.1.0
    • 6.25
    • Published

    garity

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

    • v0.0.1-6
    • 6.00
    • Published

    mrlambda

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

    • v0.7.1
    • 4.73
    • Published

    guess-function-max-arity

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

    • v1.0.0
    • 4.66
    • Published

    yudarity

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

    • v0.1.3
    • 4.66
    • 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
      • 2.87
      • Published

      dyn-curry

      Dynamic, fully controlled and configurable currying

      • v0.1.0
      • 2.84
      • Published

      mk-fn

      Make functions with a specified length.

      • v1.0.1
      • 2.65
      • Published