is-arguments (1.2.0)

Published 2026-02-24 13:58:15 +00:00 by atheaadmin

Installation

registry=
npm install is-arguments@1.2.0
"is-arguments": "1.2.0"

About this package

is-arguments Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this an arguments object? It's a harder question than you think.

Example

var isArguments = require('is-arguments');
var assert = require('assert');

assert.equal(isArguments({}), false);
assert.equal(isArguments([]), false);
(function () {
	assert.equal(isArguments(arguments), true);
}())

Caveats

If you have modified an actual arguments object by giving it a Symbol.toStringTag property, then this package will return false.

Tests

Simply clone the repo, npm install, and run npm test

Dependencies

Dependencies

ID Version
call-bound ^1.0.2
has-tostringtag ^1.0.2

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.1
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.2
@types/tape ^5.6.5
auto-changelog ^2.5.0
encoding ^0.1.13
eslint =8.8.0
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript next

Keywords

arguments js javascript is-arguments is object
Details
npm
2026-02-24 13:58:15 +00:00
1
Jordan Harband
MIT
latest
11 KiB
Assets (1)
Versions (1) View all
1.2.0 2026-02-24