build/component-docs-build.js
function buildAPIs(vueObj) {
  const funcArray = [propsAPIObject, methodsAPIObject, eventsAPIObject, slotsAPIObject]

  const compAPIObj = funcArray.reduce((apiObj, curFn) => {
    const obj = curFn(vueObj)

    if (obj !== null) {
      Object.assign(apiObj, obj)
    }
    return apiObj
  }, {})
  
  return compAPIObj
}
function buildAPIs(vueObj) {
  const funcArray = [propsAPIObject, methodsAPIObject, eventsAPIObject, slotsAPIObject]

  const compAPIObj = funcArray.reduce((apiObj, curFn) => {
    const obj = curFn(vueObj)

    if (obj !== null) {
      Object.assign(apiObj, obj)
    }
    return apiObj
  }, {})
  
  return compAPIObj
}
function buildAPIs ( vueObj ) { const funcArray = [ propsAPIObject , methodsAPIObject , eventsAPIObject , slotsAPIObject ] const compAPIObj = funcArray . reduce ( ( apiObj , curFn ) => { const obj = curFn ( vueObj ) if ( obj !== null ) { Object . assign ( apiObj , obj ) } return apiObj } , { } ) return compAPIObj }
build data objects for Vue props, methods, events, and slots
@param {Object} vueObj -- JSON object returned by vue-docgen-api library
@returns {Object} -- obJect representing different parts of component API
build data objects for Vue props methods events and slots