Irina Glushko 2389e7160b HW1 done | 3 سال پیش | |
---|---|---|
.. | ||
.github | 3 سال پیش | |
test | 3 سال پیش | |
.editorconfig | 3 سال پیش | |
.eslintignore | 3 سال پیش | |
.eslintrc | 3 سال پیش | |
.nycrc | 3 سال پیش | |
CHANGELOG.md | 3 سال پیش | |
LICENSE | 3 سال پیش | |
README.md | 3 سال پیش | |
index.js | 3 سال پیش | |
package.json | 3 سال پیش |
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