UNPKG

433 BJavaScriptView Raw
1export default function _typeof(obj) {
2 "@babel/helpers - typeof";
3
4 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
5 _typeof = function _typeof(obj) {
6 return typeof obj;
7 };
8 } else {
9 _typeof = function _typeof(obj) {
10 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11 };
12 }
13
14 return _typeof(obj);
15}
\No newline at end of file