function pickDetails (obj) {
  return obj.child.reduce((p, c) => {
    if (c.tag === 'dl') {
      classFields.forEach((field, i) => {
        p[classFieldsKey[i]] = pickDetailField(field, c.child);
      });
    }
    return p;
  }, {});
}
// Iterate over a dl element and get the dd text for the matching dt
Iterate over a dl element and get the dd text for the matching dt
Iterate over a dl element and get the dd text for the matching dt
function pickDetails (obj) {
  return obj.child.reduce((p, c) => {
    if (c.tag === 'dl') {
      classFields.forEach((field, i) => {
        p[classFieldsKey[i]] = pickDetailField(field, c.child);
      });
    }
    return p;
  }, {});
}
function pickDetails ( obj ) { return obj . child . reduce ( ( p , c ) => { if ( c . tag === 'dl' ) { classFields . forEach ( ( field , i ) => { p [ classFieldsKey [ i ] ] = pickDetailField ( field , c . child ) ; } ) ; } return p ; } , { } ) ; }
Iterate over a dl element and get the dd text for the matching dt
Iterate over a dl element and get the dd text for the matching dt