@pakal/arity
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@pakal/arity

Source Code Version MIT License Bundle Size TypeScript

Arity is package from Pakal library

Install

$ yarn add @pakal/arity

Or

$ npm install --save @pakal/arity

Use

Module

import {
  default as arity
} from '@pakal/arity';

Browser

<script src="https://unpkg.com/@pakal/arity/bundle.umd.min.js"></script>
let {
  arity
} = _;

Examples

 let fn = arity((...args) => args, 3);

 fn('a', 'b', 'c', 'd'); // => ['a', 'b', 'c', 'd']
 fn('a', 'b', 'c'); // => ['a', 'b', 'c']
 fn('a', 'b'); // => ['a', 'b']
 fn.length; // => 3

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @pakal/arity

Weekly Downloads

9

Version

0.2.1

License

MIT

Unpacked Size

17.8 kB

Total Files

15

Last publish

Collaborators

  • yisraelx