code: function getType(value) {
  
    const type = typeof value;
  
    if (Array.isArray(value)) {
      return 'array';
    }
  
    if (value instanceof RegExp) {
      // Old webkits (at least until Android 4.0) return 'function' rather than
      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
      // passes PropTypes.object.
      return 'object';
    }
  
    if (isSymbol(type, value)) {
      return 'symbol';
    }
  
    return type;
  }
docs: /*
  Got it from `prop-types` package
  to help with auto-guessing propType