function getType (object) {
  if (object === null) {
    return 'null'
  }
  if (object === undefined) {
    return 'undefined'
  }
  if ((object instanceof Number) || (typeof object === 'number')) {
    return 'number'
  }
  if ((object instanceof String) || (typeof object === 'string')) {
    return 'string'
  }
  if ((object instanceof Boolean) || (typeof object === 'boolean')) {
    return 'boolean'
  }
  if (object instanceof RegExp) {
    return 'regexp'
  }
  if (isArray(object)) {
    return 'array'
  }

  return 'object'
}
Get the type of an object
@param {*} object
@return {String} type