# is-args

> Quickly check if a variable is an Arguments object

Latest version **0.0.1** (published 2014-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-args
pnpm add is-args
yarn add is-args
bun add is-args
```

## 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-01-27 |
| First published | 2014-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jayce Pulsipher |
| Maintainers | jaycetde |
| Keywords | arguments, args, is |

## Links

- npm: https://www.npmjs.com/package/is-args
- Repository: https://github.com/JayceTDE/is-args
- npm.io page: https://npm.io/package/is-args

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-01-27
- 0.0.0 — 2014-01-22

## README

# is-args

Quickly check if a variable is Arguments.

```javascript

var isArgs = require('is-args');

isArgs((function () { return arguments; })(1, 2, 3));
// true;

isArgs([1, 2, 3]);
// false;

```

## Installation

    $ npm install is-args

## Limitations

This is not the standard `Object.prototype.toString.call(val) === '[object Arguments]'` method.
This method is [much faster](http://jsperf.com/is-args-vs-object-prototype-tostring-call) than the `toString` method, 
however, there is a chance that you may get false positives on objects that resemble arguments:

```javascript

var x = [1,2,3];
x.callee = function () {};

isArguments(x);
// true

```

Keep this in mind as you work with this module.

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