build/vue-docs.js
function tableFromMethods(methodsArr) {
  const headers = ["Method Name", "Type", "Parameters", "Description"]
  let rows = []

  // construct rows of table array of methods
  methodsArr.forEach((method) => {
    let cols = []

    cols.push(method["name"]) // method name
    let paramList = ''
    method["params"].forEach((param) => {
      paramList += `${param["name"]}: ${param["type"]["name"]} - ${param["description"]}\n`
    })
    cols.push(paramList) // list of method parameters
    cols.push(`${method["description"]}`) // description of the method

    rows.push(cols);
  })
  
  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromMethods(methodsArr) {
  const headers = ["Method Name", "Type", "Parameters", "Description"]
  let rows = []

  // construct rows of table array of methods
  methodsArr.forEach((method) => {
    let cols = []

    cols.push(method["name"]) // method name
    let paramList = ''
    method["params"].forEach((param) => {
      paramList += `${param["name"]}: ${param["type"]["name"]} - ${param["description"]}\n`
    })
    cols.push(paramList) // list of method parameters
    cols.push(`${method["description"]}`) // description of the method

    rows.push(cols);
  })
  
  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromMethods ( methodsArr ) { const headers = [ "Method Name" , "Type" , "Parameters" , "Description" ] let rows = [ ] // construct rows of table array of methods methodsArr . forEach ( ( method ) => { let cols = [ ] cols . push ( method [ "name" ] ) // method name let paramList = '' method [ "params" ] . forEach ( ( param ) => { paramList += ` ${ param [ "name" ] } ${ param [ "type" ] [ "name" ] } ${ param [ "description" ] } \n ` } ) cols . push ( paramList ) // list of method parameters cols . push ( ` ${ method [ "description" ] } ` ) // description of the method rows . push ( cols ) ; } ) return rows . length > 0 ? { table : { headers , rows } } : null }
auxilary function to create table from `methods` property of json2md object
auxilary function to create table from methods property of json2md object