_isArguments.js 364 B

1234567891011121314
  1. import _has from "./_has.js";
  2. var toString = Object.prototype.toString;
  3. var _isArguments =
  4. /*#__PURE__*/
  5. function () {
  6. return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
  7. return toString.call(x) === '[object Arguments]';
  8. } : function _isArguments(x) {
  9. return _has('callee', x);
  10. };
  11. }();
  12. export default _isArguments;