vendor/fbtransform/visitors.js
function getVisitorsBySet(sets) {
  var visitorsToInclude = sets.reduce(function(visitors, set) {
    if (!transformSets.hasOwnProperty(set)) {
      throw new Error('Unknown visitor set: ' + set);
    }
    transformSets[set].forEach(function(visitor) {
      visitors[visitor] = true;
    });
    return visitors;
  }, {});

  var visitorList = [];
  for (var i = 0; i < transformRunOrder.length; i++) {
    if (visitorsToInclude.hasOwnProperty(transformRunOrder[i])) {
      visitorList = visitorList.concat(transformVisitors[transformRunOrder[i]]);
    }
  }

  return visitorList;
}
function getVisitorsBySet(sets) {
  var visitorsToInclude = sets.reduce(function(visitors, set) {
    if (!transformSets.hasOwnProperty(set)) {
      throw new Error('Unknown visitor set: ' + set);
    }
    transformSets[set].forEach(function(visitor) {
      visitors[visitor] = true;
    });
    return visitors;
  }, {});

  var visitorList = [];
  for (var i = 0; i < transformRunOrder.length; i++) {
    if (visitorsToInclude.hasOwnProperty(transformRunOrder[i])) {
      visitorList = visitorList.concat(transformVisitors[transformRunOrder[i]]);
    }
  }

  return visitorList;
}
function getVisitorsBySet ( sets ) { var visitorsToInclude = sets . reduce ( function ( visitors , set ) { if ( ! transformSets . hasOwnProperty ( set ) ) { throw new Error ( 'Unknown visitor set: ' + set ) ; } transformSets [ set ] . forEach ( function ( visitor ) { visitors [ visitor ] = true ; } ) ; return visitors ; } , { } ) ; var visitorList = [ ] ; for ( var i = 0 ; i < transformRunOrder . length ; i ++ ) { if ( visitorsToInclude . hasOwnProperty ( transformRunOrder [ i ] ) ) { visitorList = visitorList . concat ( transformVisitors [ transformRunOrder [ i ] ] ) ; } } return visitorList ; }
Given a list of visitor set names, return the ordered list of visitors to be
passed to jstransform.

@param {array}
@return {array}
Given a list of visitor set names return the ordered list of visitors to be passed to jstransform .