caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
.github | 8 months ago | |
test | 8 months ago | |
.editorconfig | 8 months ago | |
.eslintignore | 8 months ago | |
.eslintrc | 8 months ago | |
.nycrc | 8 months ago | |
CHANGELOG.md | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
index.js | 8 months ago | |
package.json | 8 months ago |
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