code: function userAttrType(attr, attrData) {
      return (
        [
          ['array', ({ options }) => !!options],
          [typeof attrData.value, () => true], // string, number,
        ].find(typeCondition => typeCondition[1](attrData))[0] || 'string'
      )
    }
docs: Detects the type of user defined attribute
  @param {String} attr attribute name
  @param {Object} attrData attribute config
  @return {String} type of user attr