is-arguments
Advanced tools
Is this an arguments object? It's a harder question than you think.
Weekly downloads
Changelog
v1.1.1 - 2021-08-05
node/install
instead of node/run
; use codecov
action dd28b30
87e489c
e2c2c6e
eslint
, @ljharb/eslint-config
, aud
, tape
b9ae62b
504c0a5
has-tostringtag
to behave correctly in the presence of symbol shams dc29e52
auto-changelog
, eslint
, tape
a966d25
eslint
, @ljharb/eslint-config
, tape
1218944
prepublishOnly
script for npm 7+ 757dbee
call-bind
b206f05
b89b2f1
Readme
Is this an arguments object? It's a harder question than you think.
var isArguments = require('is-arguments');
var assert = require('assert');
assert.equal(isArguments({}), false);
assert.equal(isArguments([]), false);
(function () {
assert.equal(isArguments(arguments), true);
}())
If you have modified an actual arguments
object by giving it a Symbol.toStringTag
property, then this package will return false
.
Simply clone the repo, npm install
, and run npm test
Is this an arguments object? It's a harder question than you think.
The npm package is-arguments receives a total of 15,780,860 weekly downloads. As such, is-arguments popularity was classified as popular.
We found that is-arguments demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.