zhiquz 7a40c7e6aa first commit před 1 rokem
..
.github 7a40c7e6aa first commit před 1 rokem
test 7a40c7e6aa first commit před 1 rokem
.editorconfig 7a40c7e6aa first commit před 1 rokem
.eslintignore 7a40c7e6aa first commit před 1 rokem
.eslintrc 7a40c7e6aa first commit před 1 rokem
.nycrc 7a40c7e6aa first commit před 1 rokem
CHANGELOG.md 7a40c7e6aa first commit před 1 rokem
LICENSE 7a40c7e6aa first commit před 1 rokem
README.md 7a40c7e6aa first commit před 1 rokem
index.js 7a40c7e6aa first commit před 1 rokem
package.json 7a40c7e6aa first commit před 1 rokem

README.md

#is-arguments Version Badge

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