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