code: function (mixedVar) {
  
              var toString = Object.prototype.toString,
                  types    = ["Boolean", "Number", "String", "Function", "Array",
                      "Date", "RegExp", "Object", "Error", "Symbol"];
  
              if (!$this.class2type) {
                  $this.class2type = {};
                  $this.each(types, function (index) {
                      $this.class2type["[object " + types[index] + "]"] = types[index].toLowerCase();
                  });
              }
  
              if (mixedVar === null) {
                  return mixedVar + "";
              }
  
              // Support: Android<4.0 (functionish RegExp)
              return typeof mixedVar === "object" ||
              typeof mixedVar === "function" ? ($this.class2type[toString.call(mixedVar)] || "object") : typeof mixedVar;
          }
docs: Get variable type
  
  @param mixedVar
  @returns {*}