isArguments.js 448 B

123456789101112131415161718
  1. var _tagTester = require('./_tagTester.js');
  2. var _has = require('./_has.js');
  3. var isArguments = _tagTester('Arguments');
  4. // Define a fallback version of the method in browsers (ahem, IE < 9), where
  5. // there isn't any inspectable "Arguments" type.
  6. (function() {
  7. if (!isArguments(arguments)) {
  8. isArguments = function(obj) {
  9. return _has(obj, 'callee');
  10. };
  11. }
  12. }());
  13. var isArguments$1 = isArguments;
  14. module.exports = isArguments$1;