123456789101112131415161718192021222324252627282930313233343536 |
- var baseIsArguments = require('./_baseIsArguments'),
- isObjectLike = require('./isObjectLike');
- var objectProto = Object.prototype;
- var hasOwnProperty = objectProto.hasOwnProperty;
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
- };
- module.exports = isArguments;
|