function writeSupportCells(supportData, compatNotes, browserPlatformType) {
  let output = '';

  for (let browserNameKey of Object.keys(browsers[browserPlatformType])) {
    let support = supportData[browserNameKey];
    let supportInfo = '';
    // if supportData is an array, there are multiple support statements
    if (Array.isArray(support)) {
      for (let entry of support) {
        supportInfo += `<p>${writeSupportInfo(entry, browserNameKey, compatNotes)}</p>`;
      }
    } else if (support) { // there is just one support statement
      supportInfo = writeSupportInfo(support, browserNameKey, compatNotes);
    } else { // this browser has no info, it's unknown
    supportInfo = writeSupportInfo(null);
  }
  output += `<td class="${getSupportClass(supportData[browserNameKey])}">${supportInfo}</td>`;
}
return output;
}
function writeSupportCells(supportData, compatNotes, browserPlatformType) {
  let output = '';

  for (let browserNameKey of Object.keys(browsers[browserPlatformType])) {
    let support = supportData[browserNameKey];
    let supportInfo = '';
    // if supportData is an array, there are multiple support statements
    if (Array.isArray(support)) {
      for (let entry of support) {
        supportInfo += `<p>${writeSupportInfo(entry, browserNameKey, compatNotes)}</p>`;
      }
    } else if (support) { // there is just one support statement
      supportInfo = writeSupportInfo(support, browserNameKey, compatNotes);
    } else { // this browser has no info, it's unknown
    supportInfo = writeSupportInfo(null);
  }
  output += `<td class="${getSupportClass(supportData[browserNameKey])}">${supportInfo}</td>`;
}
return output;
}
function writeSupportCells ( supportData , compatNotes , browserPlatformType ) { let output = '' ; for ( let browserNameKey of Object . keys ( browsers [ browserPlatformType ] ) ) { let support = supportData [ browserNameKey ] ; let supportInfo = '' ; // if supportData is an array, there are multiple support statements if ( Array . isArray ( support ) ) { for ( let entry of support ) { supportInfo += ` ${ writeSupportInfo ( entry , browserNameKey , compatNotes ) } ` ; } } else if ( support ) { // there is just one support statement supportInfo = writeSupportInfo ( support , browserNameKey , compatNotes ) ; } else { // this browser has no info, it's unknown supportInfo = writeSupportInfo ( null ) ; } output += ` ${ getSupportClass ( supportData [ browserNameKey ] ) } ${ supportInfo } ` ; } return output ; }
/*
For a single row, write all the cells that contain support data.
(That is, every cell in the row except the first, which contains
an identifier for the row,  like "Basic support".
/ * For a single row write all the cells that contain support data . ( That is every cell in the row except the first which contains an identifier for the row like Basic support .
Writes support cells