code: function getType(variable) {
          var types = {
              'undefined': 'undefined',
              'number': 'number',
              'boolean': 'boolean',
              'string': 'string',
              '[object Function]': 'function',
              '[object RegExp]': 'regexp',
              '[object Array]': 'array',
              '[object Date]': 'date',
              '[object Error]': 'error'
          };
  
          return types[typeof variable === 'undefined' ? 'undefined' : _typeof(variable)] || types[{}.toString.call(variable)] || (variable ? 'object' : 'null');
      }
docs: Get variable type
  
  @category Global
  @param {Mix} variable - Variable to check type
  @return {string} Name of variable type
  @example
  getType(123); // 'number'
  getType([]); // 'array'
  getType({}); // 'object'
  // and so on...