async function mapDups(cache, dups, lang) {
	const dupDefs = await cache.getDefs(dups, lang);

	return dupDefs.reduce((dupsMap, def) => {
		const a = def['Acronym'];
		const d = def['Definition'];
		if (!dupsMap.hasOwnProperty(a)) {
			dupsMap[a] = [d];
			return dupsMap;
		}
		dupsMap[a] = [...dupsMap[a], d];
		return dupsMap;
	}, {});
}
/**
 * Takes the cache, array of acronyms with multiple definitions, and lang;
 * @returns {Promise<Object>} a map of the acronyms with an array of definitions
 */
Takes the cache, array of acronyms with multiple definitions, and lang;
@returns {Promise} a map of the acronyms with an array of definitions
Takes the cache array of acronyms with multiple definitions and lang ; @returns { Promise } a map of the acronyms with an array of definitions
async function mapDups(cache, dups, lang) {
	const dupDefs = await cache.getDefs(dups, lang);
	return dupDefs.reduce((dupsMap, def) => {
		const a = def['Acronym'];
		const d = def['Definition'];
		if (!dupsMap.hasOwnProperty(a)) {
			dupsMap[a] = [d];
			return dupsMap;
		}
		dupsMap[a] = [...dupsMap[a], d];
		return dupsMap;
	}, {});
}
async function mapDups ( cache , dups , lang ) { const dupDefs = await cache . getDefs ( dups , lang ) ; return dupDefs . reduce ( ( dupsMap , def ) => { const a = def [ 'Acronym' ] ; const d = def [ 'Definition' ] ; if ( ! dupsMap . hasOwnProperty ( a ) ) { dupsMap [ a ] = [ d ] ; return dupsMap ; } dupsMap [ a ] = [ ... dupsMap [ a ] , d ] ; return dupsMap ; } , { } ) ; }
Takes the cache, array of acronyms with multiple definitions, and lang;
 @returns {Promise<Object>} a map of the acronyms with an array of definitions
Takes the cache array of acronyms with multiple definitions and lang ; @returns { Promise<Object > } a map of the acronyms with an array of definitions