isArguments.js 454 B

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