12 lines
345 B
JavaScript
12 lines
345 B
JavaScript
import _has from './_has';
|
|
|
|
var toString = Object.prototype.toString;
|
|
var _isArguments = function () {
|
|
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
return toString.call(x) === '[object Arguments]';
|
|
} : function _isArguments(x) {
|
|
return _has('callee', x);
|
|
};
|
|
};
|
|
|
|
export default _isArguments; |