is-arguments

Is this an arguments object? It's a harder question than you think.

npm install is-arguments
4 downloads in the last month

is-arguments Version Badge

Build Status dependency status dev dependency status

npm badge

browser support

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);
}())

Tests

Simply clone the repo, npm install, and run npm test

npm loves you