max_liu b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
..
.github b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
test b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
.editorconfig b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
.eslintrc b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
.nycrc b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
CHANGELOG.md b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
LICENSE b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
README.md b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
index.js b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
package.json b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines
tsconfig.json b7ab7c8514 chore: 更新node_modules依赖文件 il y a 2 semaines

README.md

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