function userAttrType(attrData) {
    return (
      [
        ['array', ({ options }) => !!options],
        ['boolean', ({ type }) => type === 'checkbox'], // automatic bool if checkbox
        ['options', ({ type }) => type === 'options'],
        [typeof attrData.value, () => true], // string, number,
      ].find(typeCondition => typeCondition[1](attrData))[0]
    )
  }
Detects the type of user defined attribute
@param {Object} attrData attribute config
@return {string} type of user attr