![]() |
il y a 3 ans | |
---|---|---|
.. | ||
.editorconfig | il y a 3 ans | |
.eslintrc | il y a 3 ans | |
.jscs.json | il y a 3 ans | |
.travis.yml | il y a 3 ans | |
CHANGELOG.md | il y a 3 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
index.js | il y a 3 ans | |
package.json | il y a 3 ans | |
test.js | il y a 3 ans |
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