lib/associationProcessorService.js
async function renderAssociationMap(definitionMap) {
        if (!definitionMap) {
            return {};
        }

        const definitionEntries = Object.entries(definitionMap);
        const promises = definitionEntries.map(([groupName, definitionGroup]) => {
            return renderComponentFromArray(groupName, definitionGroup);
        });

        const results = await Promise.all(promises);

        const associationResults = {exported: {}, markup: {}};
        return results.reduce(merge, associationResults);
    }
async function renderAssociationMap(definitionMap) {
        if (!definitionMap) {
            return {};
        }

        const definitionEntries = Object.entries(definitionMap);
        const promises = definitionEntries.map(([groupName, definitionGroup]) => {
            return renderComponentFromArray(groupName, definitionGroup);
        });

        const results = await Promise.all(promises);

        const associationResults = {exported: {}, markup: {}};
        return results.reduce(merge, associationResults);
    }
async function renderAssociationMap ( definitionMap ) { if ( ! definitionMap ) { return { } ; } const definitionEntries = Object . entries ( definitionMap ) ; const promises = definitionEntries . map ( ( [ groupName , definitionGroup ] ) => { return renderComponentFromArray ( groupName , definitionGroup ) ; } ) ; const results = await Promise . all ( promises ) ; const associationResults = { exported : { } , markup : { } } ; return results . reduce ( merge , associationResults ) ; }
Iterates through the associations to produce a rendered component collection object

@param {Object.<string, ComponentDefinition[]>} definitionMap - hashmap of arrays of component definitions
@returns {Promise.<RenderedComponentCollection>}
Iterates through the associations to produce a rendered component collection object