Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const buildMMTLink = (conceptId, cmrEnv) => { // Get hostID based on env
const url = ['mmt', hostId(cmrEnv), 'earthdata.nasa.gov'].filter((d) => d).join('.');
return `https://${url}/collections/${conceptId}`;
};