build/vue-docs.js
function tableFromEvents(eventsObj) {
  const headers = ["Event Name", "Type", "Description"]
  let rows = []

  for(const evt in eventsObj) {
    let cols = []

    cols.push(`${evt}`) // event name
    
    let typeList = ''
    eventsObj[evt]["type"]["names"].forEach((type, idx, arr) => {
      typeList += `${type}${arr[idx+1] ? `|` : ''}`
    })
    cols.push(typeList) // list of event types
    cols.push(`${eventsObj[evt]["description"]}`) // description of the event

    rows.push(cols);
  }

  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromEvents(eventsObj) {
  const headers = ["Event Name", "Type", "Description"]
  let rows = []

  for(const evt in eventsObj) {
    let cols = []

    cols.push(`${evt}`) // event name
    
    let typeList = ''
    eventsObj[evt]["type"]["names"].forEach((type, idx, arr) => {
      typeList += `${type}${arr[idx+1] ? `|` : ''}`
    })
    cols.push(typeList) // list of event types
    cols.push(`${eventsObj[evt]["description"]}`) // description of the event

    rows.push(cols);
  }

  return rows.length > 0 ? {table: {headers, rows}} : null
}
function tableFromEvents ( eventsObj ) { const headers = [ "Event Name" , "Type" , "Description" ] let rows = [ ] for ( const evt in eventsObj ) { let cols = [ ] cols . push ( ` ${ evt } ` ) // event name let typeList = '' eventsObj [ evt ] [ "type" ] [ "names" ] . forEach ( ( type , idx , arr ) => { typeList += ` ${ type } ${ arr [ idx + 1 ] ? ` ` : '' } ` } ) cols . push ( typeList ) // list of event types cols . push ( ` ${ eventsObj [ evt ] [ "description" ] } ` ) // description of the event rows . push ( cols ) ; } return rows . length > 0 ? { table : { headers , rows } } : null }
auxilary function to create table from `events` property of json2md object
auxilary function to create table from events property of json2md object