# argsarray

> get arguments to a function as an array, withouth deoptimizing

Latest version **0.0.1** (published 2014-03-19) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install argsarray
pnpm add argsarray
yarn add argsarray
bun add argsarray
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-03-19 |
| First published | 2014-03-19 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Calvin Metcalf |
| Maintainers | cwmma |
| Keywords | arguments, args |

## Links

- npm: https://www.npmjs.com/package/argsarray
- Repository: https://github.com/calvinmetcalf/argsarray
- Issues: https://github.com/calvinmetcalf/argsarray/issues
- npm.io page: https://npm.io/package/argsarray

## Recent versions

- 0.0.1 (latest) — 2014-03-19

## README

args array [![Build Status](https://travis-ci.org/calvinmetcalf/argsarray.png)](https://travis-ci.org/calvinmetcalf/argsarray)
===

```bash
npm install argsarray
```

simple library to treat function arguments as an array without leaking the arguments object ([which is bad](https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments)), based on something I wrote for [PouchDB](https://github.com/daleharvey/pouchdb).

Simple wrap a function in this and the function will always be called with an array of the arguments it was called with.

```js
var myFunc = argsarray(function myFunc(args) {
  console.log(args);
});

myFunc(a, b, c);
//[a, b, c];
```

#license

wtfpl

---
_Source: https://npm.io/package/argsarray · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
