src/defaultTemplates/js/common.template.js
function generateComponentMethods(componentMethods) {
  if (componentMethods.length === 0) {
    return ''
  }

  return componentMethods.reduce((acc, method) => {
    const methods = `${acc}\n\xa0\xa0\xa0\xa0${method}(){}\n`

    return methods
  }, '')
}
function generateComponentMethods(componentMethods) {
  if (componentMethods.length === 0) {
    return ''
  }

  return componentMethods.reduce((acc, method) => {
    const methods = `${acc}\n\xa0\xa0\xa0\xa0${method}(){}\n`

    return methods
  }, '')
}
function generateComponentMethods ( componentMethods ) { if ( componentMethods . length === 0 ) { return '' } return componentMethods . reduce ( ( acc , method ) => { const methods = ` ${ acc } \n \xa0 \xa0 \xa0 \xa0 ${ method } \n ` return methods } , '' ) }
Create the concatenation of methods string that will be injected into class and pure components
@param {Array} componentMethods
@return {String} methods
Create the concatenation of methods string that will be injected into class and pure components