code: function transformArrayClass(value, arrToStr) {
      return value.replace(/[\s*[\]]/g, '').split(',').map(item => {
          if (/^{.*}$/.test(item)) {
              return transformObjClass(item, arrToStr);
          }
          else if (arrToStr && /^.+\?.+:.+$/.test(item)) {
              return `(${item})`;
          }
  
          return item;
      }).join(arrToStr ? ' + \' \' + ' : ',');
  }
docs: transform array syntax class
  eg: [{ active: isActive }, errorClass] -> [[isActive ? 'active' : ''], errorClass]
  
  @param {string} value string to be transformed
  @param {boolean=} arrToStr whether convert array syntax to string, by default false
  @return {string} transformed result