typeof.js 1.0 KB

123456789101112131415161718192021
  1. "use strict";
  2. exports.__esModule = true;
  3. var _iterator = require("../core-js/symbol/iterator");
  4. var _iterator2 = _interopRequireDefault(_iterator);
  5. var _symbol = require("../core-js/symbol");
  6. var _symbol2 = _interopRequireDefault(_symbol);
  7. var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
  10. return typeof obj === "undefined" ? "undefined" : _typeof(obj);
  11. } : function (obj) {
  12. return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
  13. };