Package Exports
- is-args
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-args) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-args
Quickly check if a variable is Arguments.
var isArgs = require('is-args');
isArgs((function () { return arguments; })(1, 2, 3));
// true;
isArgs([1, 2, 3]);
// false;
This is not the standard Object.prototype.toString.call(val) === '[object Arguments]' method.
This method is much faster than the toString method,
however, there is a chance that you may get false positives on objects that resemble arguments:
var x = [1,2,3];
x.callee = function () {};
isArguments(x);
// true
Keep this in mind as you work with this module.